From 5a236891c85e8a4cef3222308f7fe7c9a9549c7b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 3 May 2012 15:07:15 +0000 Subject: *** empty log message *** --- Changes | 2 ++ ev.pod | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Changes b/Changes index 3b41960..77d8846 100644 --- a/Changes +++ b/Changes @@ -6,6 +6,8 @@ TODO: EV_STANDALONE == NO_HASSEL (do not use clock_gettime in ev_standalone) TODO: document WSA_EV_USE_SOCKET in win32 part TODO: ^ OR use WSASend/WSARecv on the handle, which always works TODO: assert on fd watcher linked list pointing to itself +TODO: faq, process a thing in each iteration +TODO: abuse idle watchers for their side effect - add throw() to all libev functions that cannot throw exceptions, for further code size decrease when compiling for C++. - add throw () to callbacks that must not throw exceptions (allocator, diff --git a/ev.pod b/ev.pod index 2f90836..7ac14b5 100644 --- a/ev.pod +++ b/ev.pod @@ -1176,13 +1176,18 @@ The C watcher has determined that you have nothing better to do. =item C -All C watchers are invoked just I C starts -to gather new events, and all C watchers are invoked just after -C has gathered them, but before it invokes any callbacks for any -received events. Callbacks of both watcher types can start and stop as -many watchers as they want, and all of them will be taken into account -(for example, a C watcher might start an idle watcher to keep -C from blocking). +All C watchers are invoked just I C starts to +gather new events, and all C watchers are queued (not invoked) +just after C has gathered them, but before it queues any callbacks +for any received events. That means C watchers are the last +watchers invoked before the event loop sleeps or polls for new events, and +C watchers will be invoked before any other watchers of the same +or lower priority within an event loop iteration. + +Callbacks of both watcher types can start and stop as many watchers as +they want, and all of them will be taken into account (for example, a +C watcher might start an idle watcher to keep C from +blocking). =item C -- cgit v1.2.3