gst-plugins-rs/generic/threadshare/src/runtime/executor
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
..
async_wrapper.rs threadshare: Fix some new clippy beta warnings 2022-08-10 12:58:28 +03:00
context.rs ts/timers: multiple improvements 2022-09-13 07:29:50 +00:00
join.rs ts/executor: replace tokio with smol-like implementation 2021-12-25 11:25:56 +00:00
mod.rs ts/timers: multiple improvements 2022-09-13 07:29:50 +00:00
reactor.rs ts/executor: clear the reactor instead of closing it... 2022-09-13 07:29:50 +00:00
scheduler.rs ts/scheduler: fix shutdown 2022-09-13 07:29:50 +00:00
task.rs ts/runtime: slight optimizations for sub tasks related operations 2022-08-18 18:42:18 +02:00
timer.rs ts/timers: multiple improvements 2022-09-13 07:29:50 +00:00