Data.DBXPlatform.TDBXSemaphore.Acquire
Delphi
function Acquire(Timeout: Int64): Boolean; reintroduce;
C++
HIDESBASE bool __fastcall Acquire(__int64 Timeout);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DBXPlatform.pas Data.DBXPlatform.hpp |
Data.DBXPlatform | TDBXSemaphore |
Description
Attempts to acquire a lock on the dbExpress semaphore.
Call Acquire from the thread that needs to use some of a shared resource's units. Acquire returns True if, after the wait time, the dbExpress semaphore is signaled, False otherwise.