[Libevent-users] event_dispatch and event_loop

Daniel Morales daniminas at gmail.com
Thu Oct 25 20:06:41 EDT 2007


Hi all.. first time here

I've to modify an application, right now it's using event_dispatch () and
event_loopexit ().

Now, I've to do the task in a thread, and I've to control the thread.

The basic thread function has to be something like:

    while (events_running)
    {
        /* Events paused */
        if (events_paused) continue;

        event_loop (EVLOOP_NONBLOCK);
    }

My question is if event_dispatch () and the new code with event_loop will
work in the same way.

Thanks for any reply, and sorry my english :)

-- Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://monkeymail.org/archives/libevent-users/attachments/20071025/2c922fbe/attachment.htm


More information about the Libevent-users mailing list