Searched refs:SDL_AtomicCAS (Results 1 – 9 of 9) sorted by relevance
/AliOS-Things-master/components/SDL2/src/atomic/ |
A D | SDL_atomic.c | 130 SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval) in SDL_AtomicCAS() function 210 } while (!SDL_AtomicCAS(a, value, v)); in SDL_AtomicSet() 259 } while (!SDL_AtomicCAS(a, value, (value + v))); in SDL_AtomicAdd() 273 } while (!SDL_AtomicCAS(a, value, value)); in SDL_AtomicGet()
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testatomic.c | 73 tfret = (SDL_AtomicCAS(&v, 0, 20) == SDL_FALSE) ? SDL_TRUE : SDL_FALSE; in RunBasicTest() 76 tfret = (SDL_AtomicCAS(&v, value, 20) == SDL_TRUE) ? SDL_TRUE : SDL_FALSE; in RunBasicTest() 187 b=SDL_AtomicCAS(&good, 500, 43); in RunEpicTest() 192 b=SDL_AtomicCAS(&good, CountTo, 44); in RunEpicTest() 338 if (SDL_AtomicCAS(&queue->enqueue_pos, (int)queue_pos, (int)(queue_pos+1))) { in EnqueueEvent_LockFree() 385 if (SDL_AtomicCAS(&queue->dequeue_pos, (int)queue_pos, (int)(queue_pos+1))) { in DequeueEvent_LockFree()
|
/AliOS-Things-master/components/SDL2/src/thread/ |
A D | SDL_thread.c | 282 if (!SDL_AtomicCAS(&thread->state, SDL_THREAD_STATE_ALIVE, SDL_THREAD_STATE_ZOMBIE)) { in SDL_RunThread() 284 if (SDL_AtomicCAS(&thread->state, SDL_THREAD_STATE_DETACHED, SDL_THREAD_STATE_CLEANED)) { in SDL_RunThread() 456 if (SDL_AtomicCAS(&thread->state, SDL_THREAD_STATE_ALIVE, SDL_THREAD_STATE_DETACHED)) { in SDL_DetachThread()
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_atomic.h | 225 extern DECLSPEC SDL_bool SDLCALL SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval);
|
/AliOS-Things-master/components/SDL2/src/joystick/hidapi/ |
A D | SDL_hidapi_rumble.c | 148 if (SDL_AtomicCAS(&ctx->initialized, SDL_FALSE, SDL_TRUE)) { in SDL_HIDAPI_LockRumble()
|
/AliOS-Things-master/components/SDL2/src/audio/wasapi/ |
A D | SDL_wasapi_winrt.cpp | 263 while (!SDL_AtomicCAS(&_this->hidden->just_activated, 1, 0)) { in WASAPI_ActivateDevice()
|
/AliOS-Things-master/components/SDL2/src/timer/ |
A D | SDL_timer.c | 245 if (SDL_AtomicCAS(&data->active, 1, 0)) { /* active? Move to inactive. */ in SDL_TimerQuit()
|
/AliOS-Things-master/components/SDL2/src/dynapi/ |
A D | SDL_dynapi_overrides.h | 66 #define SDL_AtomicCAS SDL_AtomicCAS_REAL macro
|
A D | SDL_dynapi_procs.h | 97 SDL_DYNAPI_PROC(SDL_bool,SDL_AtomicCAS,(SDL_atomic_t *a, int b, int c),(a,b,c),return)
|
Completed in 23 milliseconds