Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: [Thread::Queue] How to handle unexpected termination and time out in threads

by Preceptor (Deacon)
on Apr 09, 2014 at 16:24 UTC ( #1081689=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      while ( my $item = $my_q -> dequeue() )
    
  2. or download this
    for ( 1..$num_workers ) {
      my $thr = threads -> create ( \&worker_thread );
    ...
    foreach my $thr ( @worker_threads ) {
      $thr -> join();
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081689]
help
Chatterbox?
[Lady_Aleena]: LanX, for every module I've written?
[huck]: Lady_Aleena see Re: pl script in webserver and/or Re: pl script in webserver for what they use
[Lady_Aleena]: Wouldn't I have to run the modules somehow to get their %INC?
[huck]: the first one works just fine from the command line but requires editing
[huck]: but neither will handle autoloads
[Lady_Aleena]: huck, I was thinking more along the lines of just getting all my .pm files, iterating over them, and making a big ol' hash or something.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-05-27 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?