[pulseaudio-discuss] mainloop n defer events assertion

Tanu Kaskinen tanuk at iki.fi
Sun Apr 24 15:31:55 UTC 2016


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


More information about the pulseaudio-discuss mailing list