Using EV_CUSTOM for custom events

Konstantin Osipov kostja.osipov at gmail.com
Fri Apr 27 17:09:29 CEST 2012


Hello,

I'm looking for an efficient mechanism to asynchronously invoke
one callback from another, or awake one watcher from another.

Currently we use ev_async for that, but it involves writing
into a pipe, and is thus slower than I would like it to be.

Hence I was looking for ev_signal and EV_CUSTOM event type 
as a replacement. 

Is this solution any good, and if yes, what would be a good signo
for this kind of watcher?

-- 
http://tarantool.org - an efficient, extensible in-memory data store



More information about the libev mailing list