FMX.Utils.TNonReentrantHelper.EnterSection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function EnterSection(var Guard: Boolean): Boolean; inline;

C++

__classmethod bool __fastcall EnterSection(bool &Guard);

Properties

Type Visibility Source Unit Parent
function public
FMX.Utils.pas
FMX.Utils.hpp
FMX.Utils TNonReentrantHelper


Description

Enter a non-reentrable section of the code.

EnterSection returns the boolean value.

If the value of Guard is False, EnterSection changes Guard value to True and returns True.

Otherwise, EnterSection returns False.

See Also