Try and obtain the critical section.
Source position: syncobjs.pp line 85
public function TCriticalSection.TryEnter: Boolean; |
False if another thread owns the critical section, true if obtained at once.
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.
None.
|
Alias for Acquire. |