Unique Identifier

David Elrom david.elrom at gmail.com
Fri Jun 14 04:04:06 CEST 2013


Hello,

First I'd like to thank Marc for what is an excellent high performance
library. Thanks!

My question is as follows: it appears like certain watchers have no
identifier (particularly, async and timer). How is one supposed to deal
with having many of these? By creating a different callback function for
each? I'm asking because in my application I might have many (run time)
timers, and it would be quite convenient for all of them to have the same
callback, where one of the parameters is a unique identifier.

Am I going about this the wrong way? is there a way of adding so-called
"user data" to a callback?

Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20130613/e8b42995/attachment.html>


More information about the libev mailing list