System.Threading.TThreadPool.TSafeSharedInteger

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

    TSafeSharedInteger = record
    private
      FSharedVar: PInteger;
      function GetInteger: Integer; inline;
      procedure SetInteger(const Value: Integer); inline;
    public
      constructor Create(var SharedVar: Integer);
      function Increment: Integer; inline;
      function Decrement: Integer; inline;
      function CompareExchange(Value: Integer; Comparand: Integer): Integer; inline;
      class operator Explicit(Value: TSafeSharedInteger): Integer; inline;
      property Value: Integer read GetInteger write SetInteger;
    end;

C++

struct DECLSPEC_DRECORD TSafeSharedInteger
{
private:
    int *FSharedVar;
    int __fastcall GetInteger(void);
    void __fastcall SetInteger(const int Value);
public:
    __fastcall TSafeSharedInteger(int &SharedVar);
    int __fastcall Increment(void);
    int __fastcall Decrement(void);
    int __fastcall CompareExchange(int Value, int Comparand);
    __property int Value = {read=GetInteger, write=SetInteger};
    TSafeSharedInteger() {}
};

Properties

Type Visibility Source Unit Parent
record
struct
protected
System.Threading.pas
System.Threading.hpp
System.Threading TThreadPool

Description

Embarcadero Technologies does not currently have any additional information. Please help us document this topic by using the Discussion page!