[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Q: Exception callbacks and events that should run immediately



On Wed, Dec 05, 2012 at 07:39:01AM +0000, Alexander Kolbasov wrote:
> 
> 2) Sometimes I need to post an event that will be executed in the same event loop iteration 
>     (possibly after other events are processed)- e.g.  I want to break a long call stack and restart
>     from the event loop or want to give other events a chance to run. What is the good way of doing this - 
>     should I just post a timer event with a zero timeout value or do something else?
> 

This is how I do it, and how I recommend doing it.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.