Table of Contents

Struct AtomicInt32

Namespace
Sdl3Sharp.Threading
Assembly
Sdl3Sharp.dll
public struct AtomicInt32
Inherited Members
Extension Methods

Methods

Add(ref AtomicInt32, int)

public static int Add(ref AtomicInt32 atomic, int value)

Parameters

atomic AtomicInt32
value int

Returns

int

Equals(object?)

Calls to this method are not supported

[DoesNotReturn]
public override readonly bool Equals(object? obj)

Parameters

obj object

Not 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

atomic AtomicInt32

Returns

int

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

atomic AtomicInt32
value int

Returns

int

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

atomic AtomicInt32
oldValue int
newValue int

Returns

bool