sdlAtomicSetPtr function
Set a pointer to a value atomically.
Note: If you don't know what this function is for, you shouldn't use it!
\param a a pointer to a pointer \param v the desired pointer value \returns the previous value of the pointer.
\since This function is available since SDL 2.0.2.
\sa SDL_AtomicCASPtr \sa SDL_AtomicGetPtr
extern DECLSPEC void* SDLCALL SDL_AtomicSetPtr(void **a, void* v)
Implementation
Pointer<NativeType> sdlAtomicSetPtr(
Pointer<Pointer<NativeType>> a, Pointer<NativeType> v) {
final sdlAtomicSetPtrLookupFunction = libSdl2.lookupFunction<
Pointer<NativeType> Function(
Pointer<Pointer<NativeType>> a, Pointer<NativeType> v),
Pointer<NativeType> Function(Pointer<Pointer<NativeType>> a,
Pointer<NativeType> v)>('SDL_AtomicSetPtr');
return sdlAtomicSetPtrLookupFunction(a, v);
}