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.el...@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 > >
_______________________________________________ libev mailing list libev@lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev