Search code examples
.netresetmanualresetevent

.NET - ManualResetEvent.Reset thread blocking


According to MSDN, the purpose of ManualResetEvent's Reset() method is -

Sets the state of the event to nonsignaled, causing threads to block.

What thread(s) does it block ? The calling thread or the current one or any other ?

Thanks in advance.


Solution

  • It blocks the threads calling WaitOne() on the wait handle (the ManualResetEvent)