TCriticalSection.TryEnter¶
Try and obtain the critical section.
Declaration¶
Source position: syncobjs.pp line 124
public
function TCriticalSection.TryEnter : Boolean;
Description¶
TryEnter tries to enter the critical section: it returns at once and does not wait if the critical section is owned by another thread; if the current thread owns the critical section or the critical section was obtained successfully, true is returned. If the critical section is currently owned by another thread, False is returned.
Errors¶
None.
See also¶
| Name | Description |
|---|---|
| TCriticalSection.Enter | Alias for Acquire. |