|
-
April 23rd, 2008, 01:47 AM
#11
Re: stop a thread
Thanks Arjay,
1.
If I set the event in signalled status, then next time, when the thread checks the singal by using WaitOne, it will be blocked, right?
2.
You mean using the timeout form of wait to check event, like this one?
http://msdn2.microsoft.com/en-us/lib...t0(VS.80).aspx
 Originally Posted by Arjay
Yes. Write it with an event and check the event as often as necessary within the thread.
Then profile the application and MEASURE the difference in performance.
regards,
George
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
|