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

Function SDL_AtomicAdd

system/include/SDL/SDL_atomic.h:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 */
238#ifndef SDL_AtomicAdd
239static __inline__ int SDL_AtomicAdd(SDL_atomic_t *a, int v)
240{
241 int value;
242 do {
243 value = a->value;
244 } while (!SDL_AtomicCAS(a, value, (value + v)));
245 return value;
246}
247#endif
248
249/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected