sdl3/generated/lib_sdl_atomic
library
Functions
-
sdlAddAtomicInt(Pointer<SdlAtomicInt> a, int v)
→ int
-
Add to an atomic variable.
-
sdlCompareAndSwapAtomicInt(Pointer<SdlAtomicInt> a, int oldval, int newval)
→ bool
-
Set an atomic variable to a new value if it is currently an old value.
-
sdlCompareAndSwapAtomicPointer(Pointer<Pointer<NativeType>> a, Pointer<NativeType> oldval, Pointer<NativeType> newval)
→ bool
-
Set a pointer to a new value if it is currently an old value.
-
sdlCompareAndSwapAtomicU32(Pointer<SdlAtomicU32> a, int oldval, int newval)
→ bool
-
Set an atomic variable to a new value if it is currently an old value.
-
sdlGetAtomicInt(Pointer<SdlAtomicInt> a)
→ int
-
Get the value of an atomic variable.
-
sdlGetAtomicPointer(Pointer<Pointer<NativeType>> a)
→ Pointer<NativeType>
-
Get the value of a pointer atomically.
-
sdlGetAtomicU32(Pointer<SdlAtomicU32> a)
→ int
-
Get the value of an atomic variable.
-
sdlLockSpinlock(Pointer<Int32> lock)
→ void
-
Lock a spin lock by setting it to a non-zero value.
-
sdlMemoryBarrierAcquireFunction()
→ void
-
Insert a memory acquire barrier.
-
sdlMemoryBarrierReleaseFunction()
→ void
-
Insert a memory release barrier.
-
sdlSetAtomicInt(Pointer<SdlAtomicInt> a, int v)
→ int
-
Set an atomic variable to a value.
-
sdlSetAtomicPointer(Pointer<Pointer<NativeType>> a, Pointer<NativeType> v)
→ Pointer<NativeType>
-
Set a pointer to a value atomically.
-
sdlSetAtomicU32(Pointer<SdlAtomicU32> a, int v)
→ int
-
Set an atomic variable to a value.
-
sdlTryLockSpinlock(Pointer<Int32> lock)
→ bool
-
Try to lock a spin lock by setting it to a non-zero value.
-
sdlUnlockSpinlock(Pointer<Int32> lock)
→ void
-
Unlock a spin lock by setting it to 0.