Struct AtomicInt32
public struct AtomicInt32
- Inherited Members
- Extension Methods
Methods
Add(ref AtomicInt32, int)
public static int Add(ref AtomicInt32 atomic, int value)
Parameters
atomicAtomicInt32valueint
Returns
Equals(object?)
Calls to this method are not supported
[DoesNotReturn]
public override readonly bool Equals(object? obj)
Parameters
objobjectNot supported
Returns
- bool
Calls to this method are not supported
Remarks
Calls to this method are not supported. Check the values returned by Get(ref readonly AtomicInt32) for equality instead.
Exceptions
- NotSupportedException
always
Get(ref readonly AtomicInt32)
public static int Get(ref readonly AtomicInt32 atomic)
Parameters
atomicAtomicInt32
Returns
GetHashCode()
Calls to this method are not supported
[DoesNotReturn]
public override readonly int GetHashCode()
Returns
- int
Calls to this method are not supported
Remarks
Calls to this method are not supported. Calculate a hash code from the value returned by Get(ref readonly AtomicInt32) instead.
Exceptions
- NotSupportedException
always
Set(ref AtomicInt32, int)
public static int Set(ref AtomicInt32 atomic, int value)
Parameters
atomicAtomicInt32valueint
Returns
ToString()
Calls to this method are not supported
[DoesNotReturn]
public override readonly string ToString()
Returns
- string
Calls to this method are not supported
Remarks
Calls to this method are not supported. Get a string reprensentation for the value returned by Get(ref readonly AtomicInt32) instead.
Exceptions
- NotSupportedException
always
TryCompareAndSwap(ref AtomicInt32, int, int)
public static bool TryCompareAndSwap(ref AtomicInt32 atomic, int oldValue, int newValue)
Parameters
atomicAtomicInt32oldValueintnewValueint