Home
last modified time | relevance | path

Searched refs:SDL_AtomicCAS (Results 1 – 9 of 9) sorted by relevance

/AliOS-Things-master/components/SDL2/src/atomic/
A DSDL_atomic.c130 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 Dtestatomic.c73 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 DSDL_thread.c282 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 DSDL_atomic.h225 extern DECLSPEC SDL_bool SDLCALL SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval);
/AliOS-Things-master/components/SDL2/src/joystick/hidapi/
A DSDL_hidapi_rumble.c148 if (SDL_AtomicCAS(&ctx->initialized, SDL_FALSE, SDL_TRUE)) { in SDL_HIDAPI_LockRumble()
/AliOS-Things-master/components/SDL2/src/audio/wasapi/
A DSDL_wasapi_winrt.cpp263 while (!SDL_AtomicCAS(&_this->hidden->just_activated, 1, 0)) { in WASAPI_ActivateDevice()
/AliOS-Things-master/components/SDL2/src/timer/
A DSDL_timer.c245 if (SDL_AtomicCAS(&data->active, 1, 0)) { /* active? Move to inactive. */ in SDL_TimerQuit()
/AliOS-Things-master/components/SDL2/src/dynapi/
A DSDL_dynapi_overrides.h66 #define SDL_AtomicCAS SDL_AtomicCAS_REAL macro
A DSDL_dynapi_procs.h97 SDL_DYNAPI_PROC(SDL_bool,SDL_AtomicCAS,(SDL_atomic_t *a, int b, int c),(a,b,c),return)

Completed in 23 milliseconds