in reply to Re^3: AnyEvent: How to protect critical sections?
in thread AnyEvent: How to protect critical sections?
I was just hoping that there was some kind of $condvar->send/recv mechanism that supported lock()/unlock() so that I could write something like
$condvar->lock(); http_get "http://blah", sub { $condvar->unlock(); print $_[1] };
sub timer_callback { $condvar->lock(); # ... $condvar->unlock(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: AnyEvent: How to protect critical sections?
by Corion (Patriarch) on May 17, 2011 at 21:03 UTC | |
by saintmike (Vicar) on May 17, 2011 at 21:25 UTC | |
by Anonymous Monk on May 18, 2011 at 19:55 UTC |