diff options
author | root <root> | 2008-04-02 06:34:50 +0000 |
---|---|---|
committer | root <root> | 2008-04-02 06:34:50 +0000 |
commit | 44f698ae2a749d552fab07dd450d4085f8f83531 (patch) | |
tree | 6b3f47ef0dbd6593ea22d07f5075b7bd4ed08e10 /ev.pod | |
parent | 812df45ef78bee506a4923d2b1498cdc66aebff1 (diff) |
*** empty log message ***
Diffstat (limited to 'ev.pod')
-rw-r--r-- | ev.pod | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -2290,6 +2290,20 @@ This call incurs the overhead of a syscall only once per loop iteration, so while the overhead might be noticable, it doesn't apply to repeated calls to C<ev_async_send>. +=item bool = ev_async_pending (ev_async *) + +Returns a non-zero value when C<ev_async_send> has been called on the +watcher but the event has not yet been processed (or even noted) by the +event loop. + +C<ev_async_send> sets a flag in the watcher and wakes up the loop. When +the loop iterates next and checks for the watcher to have become active, +it will reset the flag again. C<ev_async_pending> can be used to very +quickly check wether invoking the loop might be a good idea. + +Not that this does I<not> check wether the watcher itself is pending, only +wether it has been requested to make this watcher pending. + =back |