Interlocked.Read(Int64) Interlocked.Read(Int64) Interlocked.Read(Int64) Interlocked.Read(Int64) Method

Definition

Returns a 64-bit value, loaded as an atomic operation.

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

Parameters

location
Int64 Int64 Int64 Int64

The 64-bit value to be loaded.

Returns

The loaded value.

Remarks

The Read method is unnecessary on 64-bit systems, because 64-bit read operations are already atomic. On 32-bit systems, 64-bit read operations are not atomic unless performed using Read.

Applies to

See also