Unique Identifier

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

Just now found "ASSOCIATING CUSTOM DATA WITH A WATCHER"... I thought I had
combed every inch of the manual. Thanks.

On Thu, Jun 13, 2013 at 7:04 PM, David Elrom <david.elrom at gmail.com> wrote:

> 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/88ce5502/attachment.html>

More information about the libev mailing list