Help for this page

Select Code to Download


  1. or download this
    
    sub worker_thread
    ...
    {
      $thread -> join();
    }
    
  2. or download this
      my $thread_exclusion = Thread::Semaphore -> new ( -1 * $nthreads + 1
    + );
    
  3. or download this
      $thread_exclusion -> up();
    
  4. or download this
    sub close_queues
    {
      $exclusion_lock -> down();
      $process_q -> end(); 
    }
    
  5. or download this
    $SIG{'ALRM'} = \&close_queues();
    alarm ( 60 );