|
-
August 30th, 1999, 12:20 PM
#2
Re: How to terminate a child thread?
I use a variable that the thread can get to through the pointer that you pass to the thread function. The main thread sets m_endAllThreads to true, and the worker thread checks this periodically. Then the main thread uses WaitForSingleObject() to give the worker time to finish up.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|