[En-Nut-Discussion] Event API

Henk Kampman henk at secondmove.com
Wed Oct 27 10:09:42 CEST 2004


On 27-okt-04, at 9:40, Harald Kipp wrote:

> At 19:58 26.10.2004 +0200, you wrote:
>> Why is there no NutEventClear?
>
>
> NutEventBroadcast() clears an event queue.

But is also awakes waiting threads!
I just want to  clear a possible pending event that happened before I 
call NutEventWait.
These situations can happen when you use  NutEventWait in conjunction 
with timeouts.
The thread you are waiting for may call NutEventPost after your 
NutEventWait expires.

Henk




More information about the En-Nut-Discussion mailing list