unreliable timer with RUN_ONCE since 4.10
Marc Lehmann
schmorp at schmorp.de
Thu Feb 25 03:47:03 CET 2016
On Mon, Feb 22, 2016 at 04:13:07PM +0200, Alex Efros <powerman at powerman.name> wrote:
> Okay, that makes sense, thanks.
>
> If it works this way (because of internal libev watchers), then I see
> possible use cases for EV::run(0) and EV::run(RUN_NOWAIT), but can't
> imagine use cases for RUN_ONCE. Are there some examples for RUN_ONCE uses?
The typical RUN_ONCE use case is to implement your own ev_run-like
function with extra functionality. For example, ev_break-like
functionality could be implemented via RUN_ONCE.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list