--- libev/ev.pod 2007/12/07 20:13:09 1.71 +++ libev/ev.pod 2007/12/08 03:53:36 1.73 @@ -738,8 +738,9 @@ Returns a true value iff the watcher is pending, (i.e. it has outstanding events but its callback has not yet been invoked). As long as a watcher is pending (but not active) you must not call an init function on it (but -C is safe) and you must make sure the watcher is available to -libev (e.g. you cnanot C it). +C is safe), you must not change its priority, and you must +make sure the watcher is available to libev (e.g. you cannot C +it). =item callback ev_cb (ev_TYPE *watcher) @@ -768,6 +769,9 @@ If you need to suppress invocation when higher priority events are pending you need to look at C watchers, which provide this functionality. +You I change the priority of a watcher as long as it is active or +pending. + The default priority used by watchers when no priority has been set is always C<0>, which is supposed to not be too high and not be too low :). @@ -1751,12 +1755,12 @@ put into the C namespace. It should support all the same embedding options as F, most notably C. -Care has been taken to keep the overhead low. The only data member added -to the C-style watchers is the event loop the watcher is associated with -(or no additional members at all if you disable C when -embedding libev). +Care has been taken to keep the overhead low. The only data member the C++ +classes add (compared to plain C-style watchers) is the event loop pointer +that the watcher is associated with (or no additional members at all if +you disable C when embedding libev). -Currently, functions and static and non-static member functions can be +Currently, functions, and static and non-static member functions can be used as callbacks. Other types should be easy to add as long as they only need one additional pointer for context. If you need support for other types of functors please contact the author (preferably after implementing