George George

George George

  • NA
  • 778
  • 0

WaitOne exitContext

Apr 23 2008 2:57 AM

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