diff options
author | root <root> | 2010-10-24 17:58:41 +0000 |
---|---|---|
committer | root <root> | 2010-10-24 17:58:41 +0000 |
commit | b7d68bce1fe086bea6ac5e2a59b73277a2839872 (patch) | |
tree | 9d951dba2a3dbdebd99fb310d18e6132d5514c6b /ev.pod | |
parent | 89d2cb2898efcf393881b17ef3b4b2f1d76db84d (diff) |
*** empty log message ***
Diffstat (limited to 'ev.pod')
-rw-r--r-- | ev.pod | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -344,13 +344,6 @@ environment settings to be taken into account: ev_default_loop (EVBACKEND_POLL | EVBACKEND_SELECT | EVFLAG_NOENV); -Example: Use whatever libev has to offer, but make sure that kqueue is -used if available (warning, breaks stuff, best use only with your own -private event loop and only if you know the OS supports your types of -fds): - - ev_default_loop (ev_recommended_backends () | EVBACKEND_KQUEUE); - =item struct ev_loop *ev_loop_new (unsigned int flags) This will create and initialise a new event loop object. If the loop @@ -592,6 +585,11 @@ Example: Try to create a event loop that uses epoll and nothing else. if (!epoller) fatal ("no epoll found here, maybe it hides under your chair"); +Example: Use whatever libev has to offer, but make sure that kqueue is +used if available. + + struct ev_loop *loop = ev_loop_new (ev_recommended_backends () | EVBACKEND_KQUEUE); + =item ev_loop_destroy (loop) Destroys an event loop object (frees all memory and kernel state |