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

Re: [Libevent-users] Callback after all events from the current batch have been cleared



On Tue, Jun 26, 2012 at 11:41 AM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:
> On Mon, Jun 25, 2012 at 1:20 PM, Zack Weinberg <zackw@xxxxxxxxx> wrote:
 [...]
>> I *think* this can be done with a timer event which is assigned a lower
>> priority than all other events in the program, and which is event_add()ed
>> with an immediate timeout whenever there are deallocations pending.

Oh, incidentally: using a 0-second timeout is not the best way to
actually go about scheduling an event to run immediately.  Instead,
the better choice is to make the event, and activate it directly using
event_active().

yrs,
-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.