[pulseaudio-discuss] mainloop n defer events assertion
John Promersberger
jpromersberger at hotmail.com
Thu Apr 28 01:50:51 UTC 2016
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?
> On Apr 24, 2016, at 9:32 AM, Tanu Kaskinen <tanuk at iki.fi> wrote:
>
>> On Sat, 2016-04-23 at 18:30 +0000, John Promersberger wrote:
>> You are absolutely correct. I have been corking/flushing the stream
>> outside of my mainloop thread that calls pa_mainloop_run().
>>
>> Are the callbacks for actions like stream reads and writes executing
>> in my thread that is running my mainloop or in a server thread?
>
> They are executed in the mainloop thread. (It's actually impossible to
> execute the callbacks in a server thread, because the server runs in a
> different process, so it has no visibility to functions in your
> program.)
>
> --
> Tanu
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
More information about the pulseaudio-discuss
mailing list