[fpc-devel] request for a small but important addition to the docs

Luca Olivetti luca at ventoso.org
Wed Sep 18 11:55:02 CEST 2013


Al 18/09/13 10:08, En/na Michael Schnell ha escrit:
> 
> sorry I forgot:
> 
> *If the event queue is empty, **CheckSynchronize w**aits for an event to
> be pushed by a TThread or for /timeout/ Milliseconds to pass. If timeout
> is 0, it waits forever.*

If timeout is 0 it won't wait at all:

        if timeout>0 then
          begin
            RtlEventWaitFor(SynchronizeTimeoutEvent,timeout);
          end
         else
           RtlEventResetEvent(SynchronizeTimeoutEvent);


Bye
-- 
Luca





More information about the fpc-devel mailing list