[Libevent-users] Support for Edge-Triggered behaviour

Valery Kholodkov valery+libevent at grid.net.ru
Fri May 30 04:18:24 EDT 2008


Below is the new version of file test_et.c. The resulting
executable should return 1 whenever ET works, 0 otherwise.

>>> I must think a bit how to automate this. Please give me time.
>>
>> Maybe you could use the EVLOOP_NONBLOCK flag to event_loop(), and call
>> it twice, and verify that in the edge-triggered case the event is only
>> activated on the first call, but in the level-triggered case the event
>> is activated on the second call too?
>
> This looks exactly like a solution to a problem. Thanks, I'll fix.

-- 
Best regards,
Valery Kholodkov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_et.c
Type: application/octet-stream
Size: 1271 bytes
Desc: not available
Url : http://monkeymail.org/archives/libevent-users/attachments/20080530/f33c4afb/test_et.obj


More information about the Libevent-users mailing list