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

Function SDL_AtomicSet

system/include/SDL/SDL_atomic.h:209–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 */
208#ifndef SDL_AtomicSet
209static __inline__ int SDL_AtomicSet(SDL_atomic_t *a, int v)
210{
211 int value;
212 do {
213 value = a->value;
214 } while (!SDL_AtomicCAS(a, value, v));
215 return value;
216}
217#endif
218
219/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected