Drops the lock on the specified object and puts the calling thread in the waiting queue for a specified amount of time.
function MonitorWait(AObject: TObject; Timeout: Cardinal): Boolean;
Boolean MonitorWait(TObject * AObject, unsigned Timeout);
Use MonitorWait to drop the lock on the specified object and also to put the calling thread in the waiting queue for the amount of time specified in the Timeout parameter. Hence, the calling thread is blocked until it is again able to lock AObject.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!