On 09/18/2013 10:30 AM, Thaddy wrote:
Why document a given?
A timeout = 0 can mean either of
"Wait up to forever but return when something happens" or
"Do what is to do and return at once even if there is nothing to do " or
"Never Return. When something happens do the appropriate and go on
waiting for the next"
I saw all three variants in some libraries.
Also sometimes a value of -1 or $FFFFFFFF denotes one of the three
alternatives.
A "normal" number can mean:
"return if something happens or the timeout is hit" or
"Stay in the function until the timeout is hit and during that time do
what is to be done" (rather unusual but not completely senseless.)
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel