[dmd-concurrency] Shutdown protocol

Sean Kelly sean at invisibleduck.org
Thu Jan 21 12:40:16 PST 2010


On Jan 21, 2010, at 12:36 PM, Andrei Alexandrescu wrote:

> Windows has WaitForMultipleObjects:
> 
> http://msdn.microsoft.com/en-us/library/ms687025%28VS.85%29.aspx

Does that work to detect when a thread has exited?  I've never tried it.

> which can be used in a loop as a primitive. Sadly Linux doesn't have that:
> 
> http://www.ibm.com/developerworks/linux/library/l-ipc2lin3.html
> 
> How about OSX?

Not sure.  If it does it would be in the Mach library somewhere.


More information about the dmd-concurrency mailing list