-
May 18th, 2007, 11:37 PM
#1
how to say that thread is running or not
hi all,
i have made a worker thread.what i want to know is that how to know that thread is running at a particular time.
Thanks in advance
-
May 19th, 2007, 12:39 AM
#2
Re: how to say that thread is running or not
When you create the thread, save its handle and use GetExitCodeThread to check if the thread is still running.
-
May 19th, 2007, 08:31 AM
#3
Re: how to say that thread is running or not
Another way is to pass the thread handle to WaitForSingleObject or one of the other WaitForXXX functions.
- petter
-
May 19th, 2007, 12:14 PM
#4
Re: how to say that thread is running or not
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
|