I want to check to see if an instance of ManualResetEvent is signaled before starting a thread. How can I do this?
You can use WaitOne with a timeout of zero. Either way, the function will return immediately and you can use the return value to determine whether the event was signalled or not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With