mainloop n defer events assertion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux