.netmultithreadingevent-wait-handle

.NET EventWaitHandle signal all threads


Will close() signal all the threads that have called WaitOne()?

If not, what's the best way to do this?


Solution

  • It will cause an AbandonedMutexException. The correct way of using this class is not to call close while waiters are active.

    See http://msdn.microsoft.com/en-us/library/58195swd.aspx