zenilib
0.5.3.0
|
Go to the source code of this file.
Functions | |
static __inline__ void | enterLock (void *a) |
static __inline__ void | leaveLock (void *a) |
DECLSPEC SDL_bool SDLCALL | SDL_AtomicCAS (SDL_atomic_t *a, int oldval, int newval) |
Set an atomic variable to a new value if it is currently an old value. More... | |
DECLSPEC SDL_bool SDLCALL | SDL_AtomicCASPtr (void **a, void *oldval, void *newval) |
Set a pointer to a new value if it is currently an old value. More... | |
Variables | |
static SDL_SpinLock | locks [32] |
|
static |
Definition at line 59 of file SDL_atomic.c.
References locks, and SDL_AtomicLock().
Referenced by SDL_AtomicCAS(), and SDL_AtomicCASPtr().
|
static |
Definition at line 67 of file SDL_atomic.c.
References locks, and SDL_AtomicUnlock().
Referenced by SDL_AtomicCAS(), and SDL_AtomicCASPtr().
Set an atomic variable to a new value if it is currently an old value.
Definition at line 75 of file SDL_atomic.c.
References enterLock(), leaveLock(), SDL_FALSE, SDL_TRUE, and SDL_atomic_t::value.
Referenced by SDL_AtomicAdd(), and SDL_AtomicSet().
Set a pointer to a new value if it is currently an old value.
Definition at line 90 of file SDL_atomic.c.
References enterLock(), leaveLock(), SDL_FALSE, and SDL_TRUE.
Referenced by SDL_AtomicSetPtr().
|
static |
Definition at line 56 of file SDL_atomic.c.
Referenced by enterLock(), and leaveLock().