Searched refs:ngx_atomic_cmp_set (Results 1 - 12 of 12) sorted by relevance

/tldk/app/nginx/src/core/
H A Dngx_spinlock.c22 if (*lock == 0 && ngx_atomic_cmp_set(lock, 0, value)) {
34 if (*lock == 0 && ngx_atomic_cmp_set(lock, 0, value)) {
47 #error ngx_spinlock() or ngx_atomic_cmp_set() are not defined !
H A Dngx_rwlock.c26 if (*lock == 0 && ngx_atomic_cmp_set(lock, 0, NGX_RWLOCK_WLOCK)) {
39 && ngx_atomic_cmp_set(lock, 0, NGX_RWLOCK_WLOCK))
61 && ngx_atomic_cmp_set(lock, readers, readers + 1))
77 && ngx_atomic_cmp_set(lock, readers, readers + 1))
103 if (ngx_atomic_cmp_set(lock, readers, readers - 1)) {
116 #error ngx_atomic_cmp_set() is not defined!
H A Dngx_shmtx.c65 return (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid));
78 if (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid)) {
91 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid))
103 if (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid)) {
143 if (ngx_atomic_cmp_set(mtx->lock, ngx_pid, 0)) {
155 if (ngx_atomic_cmp_set(mtx->lock, pid, 0)) {
182 if (ngx_atomic_cmp_set(mtx->wait, wait, wait - 1)) {
/tldk/app/nginx/src/os/win32/
H A Dngx_atomic.h29 #define ngx_atomic_cmp_set(lock, old, set) \ macro
37 #define ngx_atomic_cmp_set(lock, old, set) \ macro
65 #define ngx_trylock(lock) (*(lock) == 0 && ngx_atomic_cmp_set(lock, 0, 1))
/tldk/app/nginx/src/os/unix/
H A Dngx_atomic.h33 #define ngx_atomic_cmp_set(lock, old, new) \ macro
64 #define ngx_atomic_cmp_set(lock, old, new) \ macro
76 #define ngx_atomic_cmp_set(lock, old, new) \ macro
109 #define ngx_atomic_cmp_set(lock, old, set) \ macro
137 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old,
178 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old,
278 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, function
309 #define ngx_trylock(lock) (*(lock) == 0 && ngx_atomic_cmp_set(lock, 0, 1))
H A Dngx_gcc_atomic_amd64.h37 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, function
H A Dngx_gcc_atomic_sparc64.h34 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, function
H A Dngx_gcc_atomic_x86.h38 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, function
H A Dngx_gcc_atomic_ppc.h29 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, function
92 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, function
H A Dngx_sunpro_atomic_sparc64.h25 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, function
/tldk/app/nginx/src/event/
H A Dngx_event.c524 (void) ngx_atomic_cmp_set(ngx_connection_counter, 0, 1);
/tldk/app/nginx/src/http/
H A Dngx_http_file_cache.c2011 if (!ngx_atomic_cmp_set(&cache->sh->loading, 0, ngx_pid)) {

Completed in 7 milliseconds