X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/e948c514a0abdf4c4fb9238514abc234a3570208..5045f64d1368539ae567ff2d10ec761983afe3e5:/eventxx diff --git a/eventxx b/eventxx index 8600794..5c05bc6 100644 --- a/eventxx +++ b/eventxx @@ -920,8 +920,11 @@ struct dispatcher * @param flags If eventxx::ONCE is specified, then just one event is * 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. */ - int dispatch(int flags = 0) // TODO throw(exception) + int dispatch(int flags = 0) throw() // TODO throw(exception) { return internal::event_base_loop(_event_base, flags); } @@ -931,8 +934,11 @@ struct dispatcher * * @param to If a timeout is given, the loop exits after the specified * time is elapsed. + * + * @return Not very well specified by @libevent :-/ that's why it + * doesn't throw an exception either. */ - int exit(const time& to = time()) + int exit(const time& to = time()) throw() // TODO throw(exception) { // XXX HACK libevent don't use const return internal::event_base_loopexit(_event_base,