gst-plugins-rs/generic/threadshare/src/runtime
François Laignel 1be30b8ecc ts/scheduler: fix shutdown
A strong handle reference was held in the `block_on_priv` `Result`
handler in the thread for the `Scheduler::start` code path, which
lead to the `Handler` strong count not dropping to 0 when it
should, leading to the shutdown request not being triggered.

Use an Arc<AtomicBool> instead of a oneshot channel for shutdown.
The main Future is always polled and never relies on a waker, a
`poll_fn` is cheap and does the job.

Unpark the scheduler after posting a request to shutdown.
2022-09-13 07:29:50 +00:00
..
executor ts/scheduler: fix shutdown 2022-09-13 07:29:50 +00:00
mod.rs ts/timers: multiple improvements 2022-09-13 07:29:50 +00:00
pad.rs ts/runtime: slight optimizations for sub tasks related operations 2022-08-18 18:42:18 +02:00
task.rs ts/Task: don't drain sub tasks after state transition and iteration 2022-09-13 07:29:50 +00:00