[En-Nut-Discussion] NutEventWait - Suggested Change

Ralph Mason ralph.mason at telogis.com
Thu Jan 13 21:00:55 CET 2005


This is probably contentious since it would break lots of existing code.

At the moment Calling NutEventWait with a timeout of 0 makes it wait 
forever.  I think this is wrong, calling it with a timeout of zero 
should return the signaled state of the event or return immediately with 
-1 (perhaps with a Yield)

A define of  INFINITE should be make with a value of -1 to do the Job 
that 0 does at the moment.

This means you could do non blocking reads on sockets and devices etc 
and make it cleaner (IMHO).


Ralph.



More information about the En-Nut-Discussion mailing list