mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
Mainloop: use PinosLoop
Implement the main-loop with pinos_loop except for the parts that still need to go through glib mainloop. Start working on native protocol
This commit is contained in:
parent
e7cae649aa
commit
efae64a759
13 changed files with 678 additions and 311 deletions
|
|
@ -240,6 +240,10 @@ loop_enter (SpaLoopControl *ctrl)
|
|||
{
|
||||
PinosLoopImpl *impl = SPA_CONTAINER_OF (ctrl, PinosLoopImpl, control);
|
||||
impl->thread = pthread_self();
|
||||
if (impl->event == NULL)
|
||||
impl->event = spa_loop_utils_add_event (&impl->utils,
|
||||
event_func,
|
||||
impl);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -599,9 +603,6 @@ pinos_loop_new (void)
|
|||
|
||||
spa_ringbuffer_init (&impl->buffer, DATAS_SIZE);
|
||||
|
||||
impl->event = loop_add_event (&impl->utils,
|
||||
event_func,
|
||||
impl);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue