mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
context: add method to get a work_queue
Make a method to get a work-queue from the context. There is one work-queue to use and the context will allocate it when requested and free when destroyed. The work queue is handy to delay execution of some logic for later, either in the next iteration of the main-loop or when an async operation completed. Export some work-queue methods.
This commit is contained in:
parent
bf5d40434d
commit
0a3d44ac53
4 changed files with 22 additions and 4 deletions
|
|
@ -401,10 +401,11 @@ struct pw_context {
|
|||
struct spa_hook_list driver_listener_list;
|
||||
struct spa_hook_list listener_list;
|
||||
|
||||
struct pw_loop *main_loop; /**< main loop for control */
|
||||
struct pw_loop *data_loop; /**< data loop for data passing */
|
||||
struct pw_data_loop *data_loop_impl;
|
||||
struct spa_system *data_system; /**< data system for data passing */
|
||||
struct pw_loop *main_loop; /**< main loop for control */
|
||||
struct pw_loop *data_loop; /**< data loop for data passing */
|
||||
struct pw_data_loop *data_loop_impl;
|
||||
struct spa_system *data_system; /**< data system for data passing */
|
||||
struct pw_work_queue *work_queue; /**< work queue */
|
||||
|
||||
struct spa_support support[16]; /**< support for spa plugins */
|
||||
uint32_t n_support; /**< number of support items */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue