Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Boolean Thread::Semaphore ?

by BrowserUk (Patriarch)
on Feb 08, 2012 at 12:14 UTC ( [id://952473]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    wbile( my $workitem = sourceOfWork() ) {
        sleep 1 while $Q->pending > MAXQ;
        $Q->enqueue( $workitem );
    }
    
  2. or download this
    my $cond :shared;
    
    ...
    ...
    cond_signal( $cond ) if $Q->pending < MAXQ;
    ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-16 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found