Worker thread
-
Hai, i am having a doubt. How to capture and terminate a worker thread..? Thanks, Manivannan
Born to win...!
-
Hai, i am having a doubt. How to capture and terminate a worker thread..? Thanks, Manivannan
Born to win...!
-
Hai, i am having a doubt. How to capture and terminate a worker thread..? Thanks, Manivannan
Born to win...!
Since its your worker thread, I hope you've the worker thread handle. Look at the place where the thread is getting created. Then you can terminate it by calling
TerminateThread()
. Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Hai, i am having a doubt. How to capture and terminate a worker thread..? Thanks, Manivannan
Born to win...!
Try to avoid use of TerminateThread. You can use some condition to return from the worker thread function. May be you can introduce some flag and when the fag is set to false you can return from thread function. Whenever you want to terminate the thread just reset the flag variable. You can use Events also instead of flag.
modified on Monday, May 26, 2008 3:57 AM
-
Since its your worker thread, I hope you've the worker thread handle. Look at the place where the thread is getting created. Then you can terminate it by calling
TerminateThread()
. Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
-
Hai, i am having a doubt. How to capture and terminate a worker thread..? Thanks, Manivannan
Born to win...!
Manivannan@congruent wrote:
How to capture and terminate a worker thread..?
http://www.codeproject.com/KB/threads/usingworkerthreads.aspx[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>