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

[Libevent-users] How to add a timeout event to the tail of current event list?



Hi,

I have a event loop with a mix of network socket based event and timer events. in one of the network event handler, I want to create another event that run immediately after current set of active network based events.

I'm currently using a timer event (EV_TIMEOUT) and call event_active() right away, hoping it will be attached to tail of current active event. But it doesn't seem to be working as I thought.Â

Am I doing something wrong?Â

Thanks.