]> git.llucax.com Git - software/eventxx.git/commitdiff
Fix dispatcher::dispatch() return documentation.
authorLeandro Lucarella <llucarella@integratech.com.ar>
Mon, 29 Jan 2007 18:51:36 +0000 (18:51 +0000)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Mon, 29 Jan 2007 18:51:36 +0000 (18:51 +0000)
eventxx

diff --git a/eventxx b/eventxx
index 4405fb8a587148649815784dbbc4806f2215d900..dc0a479275f679ed5ea7622bf632b5bdaeb52889 100644 (file)
--- a/eventxx
+++ b/eventxx
@@ -920,10 +920,12 @@ struct dispatcher
         *              processed, if eventxx::NONBLOCK is specified, then this
         *              function returns even if there are no pending events.
         *
-        * @return Not very well specified by @libevent :-/ that's why it
-        *         doesn't throw an exception either.
+        * @return 0 if eventxx::NONBLOCK or eventxx::ONCE is set, 1 if there
+        *         are no more events registered and EINTR if you use the
+        *         @libevent's  @c event_gotsig and return -1 in your
+        *         @c event_sigcb callback.
         */
-       int dispatch(int flags = 0) throw() // TODO  throw(exception)
+       int dispatch(int flags = 0) throw()
        {
                return internal::event_base_loop(_event_base, flags);
        }