On Fri Jan 13 22:24:33 2023 +0000, Bernhard Kölbl wrote:
The problem I see here is that a new worker could be spawned prematurely when I set`session->worker_thread = NULL;` before waiting on the thread. This could then cause races.
About the CS re-entry. I do this, so `session->worker_thread` doesn't change under _StartAsync and _StopAsyncs feet.