You are here: Symbol Reference > Math387 Namespace > Classes > TFifoCriticalSection Class > public > TFifoCriticalSection.TryEnter Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TFifoCriticalSection.TryEnter Method

Tries to enter without locking.

Pascal
function TryEnter: boolean;

Checks, if the critical sections thread waiting queue is empty and enters immediately. 

Important: Always need to call "Leave" before calling "Enter" or trying to enter on the same critical section by the same thread again.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!