<p dir="ltr"><br>
On 28-Apr-2016 7:20 AM, "John Promersberger" <<a href="mailto:jpromersberger@hotmail.com">jpromersberger@hotmail.com</a>> wrote:<br>
><br>
> Likely last question...<br>
><br>
> 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?<br>
></p>
<p dir="ltr">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.</p>
<p dir="ltr">-- Arun</p>