[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Faking EVLOOP_NO_EXIT_ON_EMPTY on earlier versions
I'm working on a program (a Tacacs+ proxy) which, for now, has 2 threads
one which listens to DBus requests (not using libevent, but I'll change
that eventually) and another which manages TCP sockets (via the
bufferevent stuff) inside an event_base_dispatch().
I'm on Debian 8 and have 2.0.5 installed... I don't have
EVLOOP_NO_EXIT_ON_EMPTY available since that was introduced in 2.1.1.
Is there an easy way to get the same functionality without burning a lot
of CPU with:
while (1)
event_base_dispatch(evbase);
Thanks,
-Philip
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.