FMX.Utils.TNonReentrantHelper

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTNonReentrantHelper

Delphi

TNonReentrantHelper = class

C++

class PASCALIMPLEMENTATION TNonReentrantHelper : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
FMX.Utils.pas
FMX.Utils.hpp
FMX.Utils FMX.Utils


Description

Helper class that contains utilities to facilitate writing non-reentrant sections of code.

Pass a non-reentrable task as a procedure or a function and TNonReentrantHelper methods return a value.

A Guard flag boolean variable is also passed by reference. The Guard variable value should be False in order for the procedure to execute.

Use the EnterSection and LeaveSection methods for non-reentrant sections that cannot be contained in one procedure.

Note:TNonReentrantHelper does not provide thread-safety.

See Also