The stupid question is the question not asked | |
PerlMonks |
Re^2: AnyEvent: How to protect critical sections?by saintmike (Vicar) |
on May 17, 2011 at 20:37 UTC ( [id://905358]=note: print w/replies, xml ) | Need Help?? |
I understand, but the problem is that I have two competing tasks: One is the timer firing, the other is a http request callback having data available.
I simply don't want the timer callback to be executed while the http request is under way, but *right after*. I guess I could just restart the timer and try to execute the interrupt later, but that's a) non-deterministic because it could fail again and b) not very efficient because I'd like to run it as soon as the http request has been completed.
In Section
Seekers of Perl Wisdom
|
|