gst-plugins-rs/generic/threadshare/src/runtime/executor
François Laignel 61c62ee1e8 ts/timers: multiple improvements
This commit improves threadshare timers predictability
by better making use of current time slice.

Added a dedicate timer BTreeMap for after timers (those
that are guaranteed to fire no sooner than the expected
instant) so as to avoid previous workaround which added
half the max throttling duration. These timers can now
be checked against the reactor processing instant.

Oneshot timers only need to be polled as `Future`s when
intervals are `Stream`s. This also reduces the size for
oneshot timers and make user call `next` on intervals.
Intervals can also implement `FusedStream`, which can help
when used in features such as `select!`.

Also drop the `time` module, which was kepts for
compatibility when the `executor` was migrated from tokio
based to smol-like.
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/timers: multiple improvements 2022-09-13 07:29:50 +00:00
scheduler.rs ts/timers: multiple improvements 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