X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/7ed68f0ab7e9b4e01141e5b8947f236c7e83fe77..f96e870a834c80bffa69ff1395ff35e263d65861:/eventxx diff --git a/eventxx b/eventxx index 4405fb8..dc0a479 100644 --- 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); }