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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment