0
Answer

WaitOne exitContext

George George

George George

16y
2.3k
1

Hello everyone,


I am confused after reading the exitContext parameter from MSDN,

http://msdn2.microsoft.com/en-us/library/kzy257t0(VS.80).aspx

What does the context mean? Does it mean if I acquire some lock (e.g. lock, readwrite lock, monitor) before invoking WaitOne, then when calling WaitOne, the locks are automatically released?

So, when the thread is waking up again by signal from WaitOne or timeout from WaitOne, it will have to try to acquire the lock or locks again before execution?


thanks in advance,
George