Signals one System.Threading.WaitHandle and waits on another.
- toSignal
- The System.Threading.WaitHandle to signal.
- toWaitOn
- The System.Threading.WaitHandle to wait on.
true if both the signal and the wait complete successfully; if the wait does not complete, the method does not return.
This operation is not guaranteed to be atomic. After the current thread signals toSignal but before it waits on toWaitOn, a thread that is running on another processor might signal toWaitOn or wait on it.