Location: Symbol Reference > Classes > TJwThread Class > TJwThread Methods > TJwThread.WaitWithTimeOut Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwThread.WaitWithTimeOut Method
Pascal
function WaitWithTimeOut(const TimeOut: DWORD; const MsgLoop: Boolean = true): LongWord;
Parameters 
Description 
const TimeOut: DWORD 
Define a timeout. If the value is 0 or INFINITE the function behaves like WaitFor.  
const MsgLoop: Boolean = true 
Defines whether the method supports window messages to avoid a GUI dead lock.  

Returns WAIT_TIMEOUT if a timeout occured or zero (0) if the thread finished.

WaitWithTimeOut waits for the thread to finish or until a timeout occurs.

The method does not support waiting with message loop support in the case when parameter MsgLoop is true and the current thread is not the main thread. 

Delphi 5 does not support SyncEvent. This event is signaled every time a thread wishes to synchronize with the main thread.

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!