System.SyncObjs.TSpinLock.IsLockedByCurrentThread
Delphi
property IsLockedByCurrentThread: Boolean read GetIsLockedByCurrentThread;
C++
__property bool IsLockedByCurrentThread = {read=GetIsLockedByCurrentThread};
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
property | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TSpinLock |
Beschreibung
Verwendet zum Überprüfen, ob die Sperre vom aktuellen Thread übernommen wird.
IsLockedByCurrentThread gibt True zurück, wenn die Sperre vom aktuellen Thread übernommen wird. Ansonsten wird False zurückgegeben.