API:System.Threading.TThreadPool.TSafeSharedInteger

提供: RAD Studio API Documentation
移動先: 案内検索

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() {}
};

プロパティ

種類 可視性 ソース ユニット
record
struct
protected
System.Threading.pas
System.Threading.hpp
System.Threading TThreadPool

説明

このトピックには現在ドキュメントが存在しません。「ノート」を利用してこのトピックの改良について話しあうことができます。