MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / SDL_AtomicSetPtr

Function SDL_AtomicSetPtr

system/include/SDL/SDL_atomic.h:284–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 */
283#ifndef SDL_AtomicSetPtr
284static __inline__ void* SDL_AtomicSetPtr(void* *a, void* v)
285{
286 void* value;
287 do {
288 value = *a;
289 } while (!SDL_AtomicCASPtr(a, value, v));
290 return value;
291}
292#endif
293
294/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected