From f96e870a834c80bffa69ff1395ff35e263d65861 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 29 Jan 2007 18:51:36 +0000 Subject: [PATCH] Fix dispatcher::dispatch() return documentation. --- eventxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); } -- 2.43.0