Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Thread Tracking.

by molecules (Monk)
on Apr 12, 2010 at 12:42 UTC ( #834258=note: print w/ replies, xml ) Need Help??


in reply to Re: Thread Tracking.
in thread Thread Tracking.

However, if you have detached any threads, you won't know about them using this function.


Comment on Re^2: Thread Tracking.
Re^3: Thread Tracking.
by Anonymous Monk on Apr 12, 2010 at 19:48 UTC

    If you still care about your threads, why are you detaching them?

      If you still care about your threads, why are you detaching them?

      They don't return anything, so there's no point in joining them. And I don't want dead threads to accumulate in memory, so I detach them.

      But it would be oh so useful to be able to wait until any remaining have gone before terminating the main thread.

      And it would be so easy for the threads class to provide threads->list( threads->detached ).

      And ->is_detached(). "Philosphical objections" aside.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-09-20 23:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls