gst-plugins-rs/generic/threadshare/src/runtime
François Laignel 625fce3934 ts/Task: spawn StateMachine on ts Context
Task state machines used to execute in an executor from the Futures
crate. State transitions actions and iteration functions were then
spawned on the target threadshare Context.

This commit directly spawns the task state machine on the threadshare
Context. This simplifies code a bit and paves the way for the changes
described in [1].

Also introduces struct `StateMachineHandle`, which gather together
fields to communicate and synchronize with the StateMachine. Renamed
`StateMachine::run` as `spawn` and return `StateMachineHandle`.

[1]: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/793#note_1464400
2022-08-09 19:48:06 +02:00
..
executor ts/scheduler: rename awake / wake_up as unpark 2022-08-09 13:17:21 +00:00
mod.rs ts/executor: replace tokio with smol-like implementation 2021-12-25 11:25:56 +00:00
pad.rs Update to gst::_log_macro_ 2022-02-21 20:50:01 +01:00
task.rs ts/Task: spawn StateMachine on ts Context 2022-08-09 19:48:06 +02:00
time.rs ts/executor: replace tokio with smol-like implementation 2021-12-25 11:25:56 +00:00