I have one thread waiting on an EventWaitHandle (AutoResetEvent):
AutoResetEvent.WaitOne();
I have another thread signalling the first thread to continue
AutoResetEvent.Set();
AutoResetEvent.Close();
Is it safe to call .Close direct after .Set, in other words will it be guaranteed that the waiting thread has continueed before the AutoResetEvent is disposed?