ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.h
(Generate patch)

Comparing libev/ev.h (file contents):
Revision 1.171 by root, Fri Mar 1 11:13:22 2013 UTC vs.
Revision 1.172 by root, Fri Dec 27 06:01:22 2013 UTC

656EV_API_DECL void ev_set_timeout_collect_interval (EV_P_ ev_tstamp interval) EV_THROW; /* sleep at least this time, default 0 */ 656EV_API_DECL void ev_set_timeout_collect_interval (EV_P_ ev_tstamp interval) EV_THROW; /* sleep at least this time, default 0 */
657 657
658/* advanced stuff for threading etc. support, see docs */ 658/* advanced stuff for threading etc. support, see docs */
659EV_API_DECL void ev_set_userdata (EV_P_ void *data) EV_THROW; 659EV_API_DECL void ev_set_userdata (EV_P_ void *data) EV_THROW;
660EV_API_DECL void *ev_userdata (EV_P) EV_THROW; 660EV_API_DECL void *ev_userdata (EV_P) EV_THROW;
661typedef void (*ev_loop_callback)(EV_P);
661EV_API_DECL void ev_set_invoke_pending_cb (EV_P_ void (*invoke_pending_cb)(EV_P)) EV_THROW; 662EV_API_DECL void ev_set_invoke_pending_cb (EV_P_ ev_loop_callback invoke_pending_cb) EV_THROW;
662EV_API_DECL void ev_set_loop_release_cb (EV_P_ void (*release)(EV_P), void (*acquire)(EV_P) EV_THROW) EV_THROW; 663typedef void (*ev_loop_callback_nothrow)(EV_P) EV_THROW;
664EV_API_DECL void ev_set_loop_release_cb (EV_P_ ev_loop_callback_nothrow release, ev_loop_callback_nothrow acquire) EV_THROW;
663 665
664EV_API_DECL unsigned int ev_pending_count (EV_P) EV_THROW; /* number of pending events, if any */ 666EV_API_DECL unsigned int ev_pending_count (EV_P) EV_THROW; /* number of pending events, if any */
665EV_API_DECL void ev_invoke_pending (EV_P); /* invoke all pending watchers */ 667EV_API_DECL void ev_invoke_pending (EV_P); /* invoke all pending watchers */
666 668
667/* 669/*
728#ifndef ev_set_cb 730#ifndef ev_set_cb
729# define ev_set_cb(ev,cb_) ev_cb (ev) = (cb_) 731# define ev_set_cb(ev,cb_) ev_cb (ev) = (cb_)
730#endif 732#endif
731 733
732/* stopping (enabling, adding) a watcher does nothing if it is already running */ 734/* stopping (enabling, adding) a watcher does nothing if it is already running */
733/* stopping (disabling, deleting) a watcher does nothing unless its already running */ 735/* stopping (disabling, deleting) a watcher does nothing unless it's already running */
734#if EV_PROTOTYPES 736#if EV_PROTOTYPES
735 737
736/* feeds an event into a watcher as if the event actually occurred */ 738/* feeds an event into a watcher as if the event actually occurred */
737/* accepts any ev_watcher type */ 739/* accepts any ev_watcher type */
738EV_API_DECL void ev_feed_event (EV_P_ void *w, int revents) EV_THROW; 740EV_API_DECL void ev_feed_event (EV_P_ void *w, int revents) EV_THROW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines