On Tue Oct 18 13:11:45 2022 +0000, Rémi Bernon wrote:
I guess another way would be to not use the main unix thread, and spawn a new one to be the main win32 thread. We could then safely call `pthread_exit` from the main unix thread, which would wait for all pthreads to exit.
So I'm doing that now, I think it's actually better, and it would probably let us allocate that thread stack beforehand and maybe treat it a bit more like the other threads. I've kept the initialization process in that thread for now though, as I'm not sure at all what kind of expectations we have here.