[pulseaudio-discuss] mainloop n defer events assertion

Arun Raghavan arun at accosted.net
Thu Apr 28 02:26:51 UTC 2016


On 28-Apr-2016 7:20 AM, "John Promersberger" <jpromersberger at hotmail.com>
wrote:
>
> Likely last question...
>
> So does that mean creating/disconnecting streams should be done in the
mainloop? Or was it that performing the flush/cork from an external thread
created events that forced an assertion by the mainloop thread?
>

If you do it outside of the mainloop, you need to take care of locking. For
example, pa_threaded_mainloop comes with locking primitives to allow you to
perform operations in mutual exclusion with the mainloop thread.

-- Arun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20160428/005871a0/attachment.html>


More information about the pulseaudio-discuss mailing list