Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: is_joinable question

by anaconda_wly (Scribe)
on Jun 04, 2013 at 06:03 UTC ( [id://1036903]=note: print w/replies, xml ) Need Help??


in reply to Re: is_joinable question
in thread is_joinable question

example you give works, but I didn't understand difference between threads->list( threads::joinable ) and is_joinable yet

while( threads->list ) { for my $joinable ( threads->list( threads::joinable ) ) { $joinable->join; } }

Replies are listed 'Best First'.
Re^3: is_joinable question
by MidLifeXis (Monsignor) on Jun 04, 2013 at 13:06 UTC

    I can ask my kids "is mom home yet?" and get a yes or no answer. I can also ask them to wait outside until their mom gets back. The first is like is_joinable, the second is like join. One gets a yes or no answer, the other blocks until it is done.

    Update: Ignore me. Didn't read the question completely.

    --MidLifeXis

Re^3: is_joinable question
by Anonymous Monk on Jun 05, 2013 at 06:03 UTC

    example you give works, but I didn't understand difference between threads->list( threads::joinable ) and is_joinable yet

    Ok, and then what happened? Do you have a question? What do you understand?

    Do you understand the difference between a while loop and an if statement?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2024-04-18 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found