|
-
September 28th, 2004, 02:06 AM
#4
Re: How to terminate a thread from another thread?
What you should do is:
1) In worker thread, waiting for an shutdown event
2) In parent thread, signal the shutdown event
3) In parent thread, wait for the handle object of the worker thread with a timeout (0-INFINITE)
4) In parent thread, if the waiting func returns timeout, kill the worker thread.
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
|