ev_prepare watcher awkwardness

Thilo Schulz thilo at tjps.eu
Mon Apr 20 17:24:56 CEST 2015


Hi again,

On Monday 20 April 2015 02:33:01 Thilo Schulz wrote:
> Further reading of the code suggests the only time you will have other
> events in the queue, is when a watcher from an EV_INVOKE_PENDING call
> prior to the queueing of prepares, with lower priority, does an
> ev_feed_event on a watcher with higher priority, right before the prepares
> are queued.

Ok. Not true either. I didn't see that pendingpri is a global variable, which 
gets modified by ev_feed_event. So there actually is no instance where 
ev_prepare watchers will ever get queued together with other watcher types.

-- 
Best regards,
Thilo Schulz



More information about the libev mailing list