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:
Wim Taymans 2016-11-22 13:06:22 +01:00
parent e7cae649aa
commit efae64a759
13 changed files with 678 additions and 311 deletions

View file

@ -795,12 +795,12 @@ do_link_remove (SpaLoop *loop,
this->rt.output = NULL;
}
res = spa_loop_invoke (this->core->main_loop->loop,
do_link_remove_done,
seq,
0,
NULL,
this);
res = pinos_loop_invoke (this->core->main_loop->loop,
do_link_remove_done,
seq,
0,
NULL,
this);
return res;
}
@ -826,23 +826,23 @@ pinos_link_destroy (PinosLink * this)
pinos_signal_remove (&impl->input_port_destroy);
pinos_signal_remove (&impl->input_async_complete);
res = spa_loop_invoke (this->input->node->data_loop->loop->loop,
do_link_remove,
impl->seq++,
0,
NULL,
this);
res = pinos_loop_invoke (this->input->node->data_loop->loop,
do_link_remove,
impl->seq++,
0,
NULL,
this);
}
if (this->output) {
pinos_signal_remove (&impl->output_port_destroy);
pinos_signal_remove (&impl->output_async_complete);
res = spa_loop_invoke (this->output->node->data_loop->loop->loop,
do_link_remove,
impl->seq++,
0,
NULL,
this);
res = pinos_loop_invoke (this->output->node->data_loop->loop,
do_link_remove,
impl->seq++,
0,
NULL,
this);
}
return res;
}