gst-plugins-rs/generic/threadshare
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
..
examples Fix/silence a couple new clippy warnings 2022-06-30 16:07:32 +03:00
src ts/Task: spawn StateMachine on ts Context 2022-08-09 19:48:06 +02:00
tests ts/tests/pad: minor ckeanups 2022-07-09 17:03:21 +00:00
build.rs fix-getters-calls 0.3.0 pass 2021-04-20 18:19:58 +02:00
Cargo.toml ts/Task: spawn StateMachine on ts Context 2022-08-09 19:48:06 +02:00
LICENSE-LGPLv2 Add LICENSE files to each individual crate 2020-07-10 13:06:28 +03:00