Interlocked.Read Metodo

Definizione

Overload

Read(UInt64)

Restituisce un valore senza segno a 64 bit, caricato come operazione atomica.

Read(Int64)

Restituisce un valore a 64 bit, caricato come operazione atomica.

Read(UInt64)

Importante

Questa API non è conforme a CLS.

Restituisce un valore senza segno a 64 bit, caricato come operazione atomica.

public:
 static System::UInt64 Read(System::UInt64 % location);
[System.CLSCompliant(false)]
public static ulong Read (ref ulong location);
[<System.CLSCompliant(false)>]
static member Read : uint64 -> uint64
Public Shared Function Read (ByRef location As ULong) As ULong

Parametri

location
UInt64

Valore a 64 bit da caricare.

Restituisce

UInt64

Valore caricato.

Attributi

Si applica a

Read(Int64)

Restituisce un valore a 64 bit, caricato come operazione atomica.

public:
 static long Read(long % location);
public static long Read (ref long location);
static member Read : int64 -> int64
Public Shared Function Read (ByRef location As Long) As Long

Parametri

location
Int64

Valore a 64 bit da caricare.

Restituisce

Int64

Valore caricato.

Commenti

Il Read metodo non è necessario nei sistemi a 64 bit, perché le operazioni di lettura a 64 bit sono già atomiche. Nei sistemi a 32 bit le operazioni di lettura a 64 bit non sono atomiche a meno che non vengano eseguite con Read.

Vedi anche

Si applica a