You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TFifoCriticalSection Class > TFifoCriticalSection Methods > TFifoCriticalSection.TryEnter Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TFifoCriticalSection.TryEnter Method

Tries to enter without locking.

Syntax
C#
Visual Basic
public bool TryEnter();

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-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!