| 207 | */ |
| 208 | #ifndef SDL_AtomicSet |
| 209 | static __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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected