sdlAtomicGetPtr function

Pointer<NativeType> sdlAtomicGetPtr(
  1. Pointer<Pointer<NativeType>> a
)

Get the value of a pointer atomically.

Note: If you don't know what this function is for, you shouldn't use it!

\param a a pointer to a pointer \returns the current value of a pointer.

\since This function is available since SDL 2.0.2.

\sa SDL_AtomicCASPtr \sa SDL_AtomicSetPtr

extern DECLSPEC void* SDLCALL SDL_AtomicGetPtr(void **a)

Implementation

Pointer<NativeType> sdlAtomicGetPtr(Pointer<Pointer<NativeType>> a) {
  final sdlAtomicGetPtrLookupFunction = libSdl2.lookupFunction<
      Pointer<NativeType> Function(Pointer<Pointer<NativeType>> a),
      Pointer<NativeType> Function(
          Pointer<Pointer<NativeType>> a)>('SDL_AtomicGetPtr');
  return sdlAtomicGetPtrLookupFunction(a);
}