|
PipeWire
0.1.9
|
PipeWire work queue object. More...
Public Member Functions | |
| struct pw_work_queue * | pw_work_queue_new (struct pw_loop *loop) |
| Create a new pw_work_queue. More... | |
| void | pw_work_queue_destroy (struct pw_work_queue *queue) |
| Destroy a work queue. More... | |
| uint32_t | pw_work_queue_add (struct pw_work_queue *queue, void *obj, int res, pw_work_func_t func, void *data) |
| Add an item to the work queue. More... | |
| int | pw_work_queue_cancel (struct pw_work_queue *queue, void *obj, uint32_t id) |
| Cancel a work item. More... | |
| int | pw_work_queue_complete (struct pw_work_queue *queue, void *obj, uint32_t seq, int res) |
| Complete a work item. More... | |
PipeWire work queue object.
| uint32_t pw_work_queue_add | ( | struct pw_work_queue * | queue, |
| void * | obj, | ||
| int | res, | ||
| pw_work_func_t | func, | ||
| void * | data | ||
| ) |
Add an item to the work queue.
| queue | the work queue |
| obj | the object owning the work item |
| res | a result code |
| func | a work function |
| data | passed to func |
References pw_log::pw_log_debug(), and pw_loop_signal_event.
Referenced by pw_link_activate().
| int pw_work_queue_cancel | ( | struct pw_work_queue * | queue, |
| void * | obj, | ||
| uint32_t | id | ||
| ) |
Cancel a work item.
| queue | the work queue |
| obj | the owner object |
| id | the wotk id to cancel |
References pw_log::pw_log_debug(), and pw_loop_signal_event.
| int pw_work_queue_complete | ( | struct pw_work_queue * | queue, |
| void * | obj, | ||
| uint32_t | seq, | ||
| int | res | ||
| ) |
Complete a work item.
| queue | the work queue |
| obj | the owner object |
| seq | the sequence number that completed |
| res | 0 if the item was found, < 0 on error |
References pw_log::pw_log_debug(), and pw_loop_signal_event.
| void pw_work_queue_destroy | ( | struct pw_work_queue * | queue | ) |
Destroy a work queue.
| queue | the work queue to destroy |
References pw_log::pw_log_debug(), pw_log::pw_log_warn(), and pw_loop_destroy_source.
| struct pw_work_queue * pw_work_queue_new | ( | struct pw_loop * | loop | ) |
Create a new pw_work_queue.
| loop | the loop to use |
References pw_log::pw_log_debug(), and pw_loop_add_event.
Referenced by pw_link_new().