From b7d68bce1fe086bea6ac5e2a59b73277a2839872 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 24 Oct 2010 17:58:41 +0000 Subject: *** empty log message *** --- ev.pod | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'ev.pod') diff --git a/ev.pod b/ev.pod index 50f8aa1..749f082 100644 --- a/ev.pod +++ b/ev.pod @@ -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 -- cgit v1.2.3