On Sep 8, 2006, at 10:18 AM, Scott Lamb wrote:
    lock
    loop:
        while there are events:
            dequeue one
            unlock
            handle it
            lock
        if someThreadPolling:
            condition wait
        else:
            someThreadPolling = true
            poll for events
            lock

Oops, here's where "someThreadPolling = false" should go.

            fire condition
    unlock

--
Scott Lamb <http://www.slamb.org/>


_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to