API:System.Threading.TThreadPool.TSafeSharedInteger

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 __fastcall SetInteger(const int Value);
public:
    __fastcall TSafeSharedInteger(int &SharedVar);
    int __fastcall Increment();
    int __fastcall Decrement();
    int __fastcall CompareExchange(int Value, int Comparand);
    __property int Value = {read=GetInteger, write=SetInteger};
    TSafeSharedInteger() {}
};

Propriétés

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

Description

Embarcadero Technologies ne possède pas d'informations supplémentaires pour le moment. Veuillez nous aider à documenter cette rubrique en utilisant la page Discussion !