Tuesday, March 31, 2009

How to Assert the thread was closed (dead) or Not ?

How to Assert the thread was closed (dead) or Not ?:

WaitForSingleObject( hThread, INFINITE) ; // This statement will blocks until the thread dies.
if the Thread comes out of the loop, then hThread handle is like signalled.
The Next statement to WaitForSingleObject () will be executed.

Labels:

0 Comments:

Post a Comment

<< Home