i m modifying the code to include those, after that i ll test again and let you know, thanks!
On 13 June 2011 23:41, Marc Lehmann <[email protected]> wrote: > On Mon, Jun 13, 2011 at 02:48:00PM -0600, Juan Pablo L > <[email protected]> wrote: >> thanks, yes i have a lock for the loop (i focused too much on the >> timer that i forgot to mention it in the explanation), >> i lock that lock just before calling ev_timer_again and realising it >> just after, right now i only one the thread running the ev_run >> and one database thread, i m going to check the code because i might >> be forgetting to acquire the loop lock somewhere then. >> i ll let you know in a little while. > > Hmm, from glancing over that code: > > - where is the mutex lock around ev_run? > - where is the async watcher that wakes up the loop? > - where is the call to ev_set_loop_release_cb? > > have you read the documentation that shows a working example? > > -- > The choice of a Deliantra, the free code+content MORPG > -----==- _GNU_ http://www.deliantra.net > ----==-- _ generation > ---==---(_)__ __ ____ __ Marc Lehmann > --==---/ / _ \/ // /\ \/ / [email protected] > -=====/_/_//_/\_,_/ /_/\_\ > > _______________________________________________ > libev mailing list > [email protected] > http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev > _______________________________________________ libev mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
