gst-plugins-rs/generic/threadshare
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
..
examples ts/timers: multiple improvements 2022-09-13 07:29:50 +00:00
src ts/scheduler: fix shutdown 2022-09-13 07:29:50 +00:00
tests threadshare: disable tests that can't work on windows 2022-09-05 11:47:20 +03:00
build.rs fix-getters-calls 0.3.0 pass 2021-04-20 18:19:58 +02:00
Cargo.toml ts: add feature to add counters for performance evaluation 2022-09-13 07:29:50 +00:00
LICENSE-LGPLv2 Add LICENSE files to each individual crate 2020-07-10 13:06:28 +03:00