Breyta

Deila með


Interlocked.Read Method

Definition

Overloads

Read(UInt64)

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

Read(Int64)

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

Read(UInt64)

Source:
Interlocked.cs
Source:
Interlocked.cs
Source:
Interlocked.cs

Important

This API is not CLS-compliant.

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

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

Parameters

location
UInt64

The 64-bit value to be loaded.

Returns

The loaded value.

Attributes

Applies to

Read(Int64)

Source:
Interlocked.CoreCLR.cs
Source:
Interlocked.CoreCLR.cs
Source:
Interlocked.CoreCLR.cs

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 -> int64
Public Shared Function Read (ByRef location As Long) As Long

Parameters

location
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.

See also

Applies to