sdl2/generated/lib_sdl_atomic library
Functions
-
sdlAtomicAdd(
Pointer< SdlAtomicT> a, int v) → int - Add to an atomic variable.
-
sdlAtomicCas(
Pointer< SdlAtomicT> a, int oldval, int newval) → bool - Set an atomic variable to a new value if it is currently an old value.
-
sdlAtomicCasPtr(
Pointer< Pointer< a, Pointer<NativeType> >NativeType> oldval, Pointer<NativeType> newval) → bool - Set a pointer to a new value if it is currently an old value.
-
sdlAtomicGet(
Pointer< SdlAtomicT> a) → int - Get the value of an atomic variable.
-
sdlAtomicGetPtr(
Pointer< Pointer< a) → Pointer<NativeType> >NativeType> - Get the value of a pointer atomically.
-
sdlAtomicLock(
Pointer< Int32> lock) → void - Lock a spin lock by setting it to a non-zero value.
-
sdlAtomicSet(
Pointer< SdlAtomicT> a, int v) → int - Set an atomic variable to a value.
-
sdlAtomicSetPtr(
Pointer< Pointer< a, Pointer<NativeType> >NativeType> v) → Pointer<NativeType> - Set a pointer to a value atomically.
-
sdlAtomicTryLock(
Pointer< Int32> lock) → bool - Try to lock a spin lock by setting it to a non-zero value.
-
sdlAtomicUnlock(
Pointer< Int32> lock) → void - Unlock a spin lock by setting it to 0.
-
sdlMemoryBarrierAcquireFunction(
) → void -
extern DECLSPEC void SDLCALL SDL_MemoryBarrierAcquireFunction(void)
-
sdlMemoryBarrierReleaseFunction(
) → void - Memory barriers are designed to prevent reads and writes from being reordered by the compiler and being seen out of order on multi-core CPUs.