Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: how to kill a thread in windows

by zentara (Archbishop)
on Jun 23, 2006 at 16:06 UTC ( [id://557240]=note: print w/replies, xml ) Need Help??


in reply to how to kill a thread in windows

I don't use windows, but on linux, to end a thread, it needs to reach the end of it's code-block, then be joined. Now if it was detached, there is no need to join it. So "end of code block" or a "return". This can be controlled by using a shared variable, which your main thread sets, is read by the thread, and tells the thread to "return".

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: how to kill a thread in windows
by vkon (Curate) on Jun 23, 2006 at 17:03 UTC
    IMO poster did phrasing very badly, but he meant to kill thread that was not issued by perl,
    so this is even almost off-topic on PM.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://557240]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-19 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found