PipeWire
0.1.4
|
PipeWire rt-loop object. More...
Public Member Functions | |
struct pw_data_loop * | pw_data_loop_new (struct pw_properties *properties) |
Create a new pw_data_loop. More... | |
void | pw_data_loop_destroy (struct pw_data_loop *loop) |
Destroy a data loop. More... | |
int | pw_data_loop_start (struct pw_data_loop *loop) |
Start a data loop. More... | |
int | pw_data_loop_stop (struct pw_data_loop *loop) |
Stop a data loop. More... | |
bool | pw_data_loop_in_thread (struct pw_data_loop *loop) |
Check if we are inside the data loop. More... | |
Data Fields | |
struct pw_loop * | loop |
struct spa_hook_list | listener_list |
struct spa_source * | event |
bool | running |
pthread_t | thread |
PipeWire rt-loop object.
void pw_data_loop_destroy | ( | struct pw_data_loop * | loop | ) |
Destroy a data loop.
loop | the data loop to destroy |
References event, listener_list, loop, pw_data_loop_stop(), pw_log::pw_log_debug(), pw_loop::pw_loop_destroy(), and pw_loop_destroy_source.
bool pw_data_loop_in_thread | ( | struct pw_data_loop * | loop | ) |
Check if we are inside the data loop.
loop | the data loop to check |
References thread.
struct pw_data_loop * pw_data_loop_new | ( | struct pw_properties * | properties | ) |
Create a new pw_data_loop.
References listener_list, loop, pw_log::pw_log_debug(), pw_loop_add_event, and pw_loop::pw_loop_new().
int pw_data_loop_start | ( | struct pw_data_loop * | loop | ) |
int pw_data_loop_stop | ( | struct pw_data_loop * | loop | ) |
Stop a data loop.
loop | the data loop to Stop |
This will stop and join the realtime thread that manages the loop.
References event, loop, pw_loop_signal_event, running, and thread.
Referenced by pw_data_loop_destroy().
struct spa_source* pw_data_loop::event |
Referenced by pw_data_loop_destroy(), and pw_data_loop_stop().
struct spa_hook_list pw_data_loop::listener_list |
Referenced by pw_data_loop_add_listener(), pw_data_loop_destroy(), and pw_data_loop_new().
struct pw_loop* pw_data_loop::loop |
Referenced by pw_data_loop_destroy(), pw_data_loop_get_loop(), pw_data_loop_new(), and pw_data_loop_stop().
bool pw_data_loop::running |
Referenced by pw_data_loop_start(), and pw_data_loop_stop().
pthread_t pw_data_loop::thread |
Referenced by pw_data_loop_in_thread(), pw_data_loop_start(), and pw_data_loop_stop().