System.MonitorWait
From RAD Studio VCL Reference
Contents |
Delphi Information
From System.pas
function MonitorWait(AObject: TObject; Timeout: Cardinal): Boolean;
Unit: System
Type: function
Visibility: public
C++ Information
From System.hpp
bool __fastcall MonitorWait(System::TObject * AObject, unsigned int Timeout);
Unit: System
Type: function
Description
Drops the lock on the specified object and puts the calling thread in the waiting queue for a specified amount of time.
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 by the Timeout parameter. Hence, the calling thread is blocked until it is again able to lock AObject.