Searched refs:lock (Results 1 - 25 of 30) sorted by relevance

12

/tldk/app/nginx/src/core/
H A Dngx_rwlock.h16 void ngx_rwlock_wlock(ngx_atomic_t *lock);
17 void ngx_rwlock_rlock(ngx_atomic_t *lock);
18 void ngx_rwlock_unlock(ngx_atomic_t *lock);
H A Dngx_spinlock.c13 ngx_spinlock(ngx_atomic_t *lock, ngx_atomic_int_t value, ngx_uint_t spin) argument
22 if (*lock == 0 && ngx_atomic_cmp_set(lock, 0, value)) {
34 if (*lock == 0 && ngx_atomic_cmp_set(lock, 0, value)) {
H A Dngx_rwlock.c20 ngx_rwlock_wlock(ngx_atomic_t *lock) argument
26 if (*lock == 0 && ngx_atomic_cmp_set(lock, 0, NGX_RWLOCK_WLOCK)) {
38 if (*lock == 0
39 && ngx_atomic_cmp_set(lock, 0, NGX_RWLOCK_WLOCK))
52 ngx_rwlock_rlock(ngx_atomic_t *lock) argument
58 readers = *lock;
61 && ngx_atomic_cmp_set(lock, readers, readers + 1))
74 readers = *lock;
77 && ngx_atomic_cmp_set(lock, reader
90 ngx_rwlock_unlock(ngx_atomic_t *lock) argument
[all...]
H A Dngx_shmtx.c21 mtx->lock = &addr->lock;
65 return (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid));
74 ngx_log_debug0(NGX_LOG_DEBUG_CORE, ngx_cycle->log, 0, "shmtx lock");
78 if (*mtx->lock == 0 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid)) {
90 if (*mtx->lock == 0
91 && ngx_atomic_cmp_set(mtx->lock, 0, ngx_pid))
103 if (*mtx->lock
[all...]
H A Dngx_shmtx.h17 ngx_atomic_t lock; member in struct:__anon64
26 ngx_atomic_t *lock; member in struct:__anon65
H A Dngx_slab.h35 ngx_shmtx_sh_t lock; member in struct:__anon67
H A Dngx_thread_pool.c176 volatile ngx_uint_t lock; local
181 task.ctx = (void *) &lock;
184 lock = 1;
190 while (lock) {
206 ngx_uint_t *lock = data; local
208 *lock = 0;
/tldk/app/nginx/src/os/win32/
H A Dngx_atomic.h29 #define ngx_atomic_cmp_set(lock, old, set) \
30 ((ngx_atomic_uint_t) InterlockedCompareExchange((long *) lock, set, old) \
37 #define ngx_atomic_cmp_set(lock, old, set) \
38 (InterlockedCompareExchange((void **) lock, (void *) set, (void *) old) \
63 void ngx_spinlock(ngx_atomic_t *lock, ngx_atomic_int_t value, ngx_uint_t spin);
65 #define ngx_trylock(lock) (*(lock) == 0 && ngx_atomic_cmp_set(lock, 0, 1))
66 #define ngx_unlock(lock) *(lock)
[all...]
/tldk/app/nginx/src/os/unix/
H A Dngx_atomic.h33 #define ngx_atomic_cmp_set(lock, old, new) \
34 AO_compare_and_swap(lock, old, new)
64 #define ngx_atomic_cmp_set(lock, old, new) \
65 OSAtomicCompareAndSwap64Barrier(old, new, (int64_t *) lock)
76 #define ngx_atomic_cmp_set(lock, old, new) \
77 OSAtomicCompareAndSwap32Barrier(old, new, (int32_t *) lock)
109 #define ngx_atomic_cmp_set(lock, old, set) \
110 __sync_bool_compare_and_swap(lock, old, set)
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_
278 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, ngx_atomic_uint_t set) argument
[all...]
H A Dngx_sunpro_atomic_sparc64.h16 ngx_casa(ngx_atomic_uint_t set, ngx_atomic_uint_t old, ngx_atomic_t *lock);
19 ngx_casxa(ngx_atomic_uint_t set, ngx_atomic_uint_t old, ngx_atomic_t *lock);
25 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, argument
28 set = NGX_CASA(set, old, lock);
H A Dngx_gcc_atomic_amd64.h9 #define NGX_SMP_LOCK "lock;"
37 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, argument
48 : "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "cc", "memory");
H A Dngx_gcc_atomic_sparc64.h34 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, argument
41 : "+r" (set) : "r" (lock), "r" (old) : "memory");
H A Dngx_gcc_atomic_x86.h9 #define NGX_SMP_LOCK "lock;"
38 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, argument
49 : "=a" (res) : "m" (*lock), "a" (old), "r" (set) : "cc", "memory");
H A Dngx_gcc_atomic_ppc.h29 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, argument
39 " ldarx %1, 0, %2 \n" /* load from [lock] into "temp" */
43 " stdcx. %4, 0, %2 \n" /* store "set" into [lock] if reservation */
51 : "b" (lock), "b" (old), "b" (set)
92 ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, argument
102 " lwarx %1, 0, %2 \n" /* load from [lock] into "temp" */
106 " stwcx. %4, 0, %2 \n" /* store "set" into [lock] if reservation */
114 : "b" (lock), "b" (old), "b" (set)
/tldk/lib/libtle_l4p/
H A Dtle_event.h49 rte_spinlock_t lock; member in struct:tle_evq
131 rte_spinlock_lock(&q->lock);
137 rte_spinlock_unlock(&q->lock);
156 rte_spinlock_lock(&q->lock);
162 rte_spinlock_unlock(&q->lock);
183 rte_spinlock_lock(&q->lock);
191 rte_spinlock_unlock(&q->lock);
210 rte_spinlock_lock(&q->lock);
216 rte_spinlock_unlock(&q->lock);
224 rte_spinlock_lock(&evq->lock);
[all...]
H A Devent.c75 rte_spinlock_lock(&evq->lock);
83 rte_spinlock_unlock(&evq->lock);
98 rte_spinlock_lock(&q->lock);
103 rte_spinlock_unlock(&q->lock);
H A Dstream.h58 rte_spinlock_lock(&ctx->streams.lock);
73 rte_spinlock_unlock(&ctx->streams.lock);
94 rte_spinlock_lock(&ctx->streams.lock);
100 rte_spinlock_unlock(&ctx->streams.lock);
H A Dctx.h55 rte_spinlock_t lock; member in struct:tle_ctx::__anon2
H A Dstream_table.h32 rte_spinlock_t l; /* lock to protect the hash table */
195 const struct tle_tcp_stream *s, uint32_t lock)
207 if (lock != 0)
210 if (lock != 0)
194 stbl_del_stream(struct stbl *st, struct stbl_entry *se, const struct tle_tcp_stream *s, uint32_t lock) argument
/tldk/lib/libtle_memtank/
H A Dtle_memtank_pub.h33 rte_spinlock_t lock; member in struct:tle_memtank
73 rte_spinlock_lock(&t->lock);
81 rte_spinlock_unlock(&t->lock);
90 rte_spinlock_lock(&t->lock);
98 rte_spinlock_unlock(&t->lock);
H A Dmemtank.c113 rte_spinlock_lock(&ls->lock);
131 rte_spinlock_unlock(&ls->lock);
136 rte_spinlock_lock(&ls->lock);
138 rte_spinlock_unlock(&ls->lock);
150 rte_spinlock_lock(&ls->lock);
159 rte_spinlock_unlock(&ls->lock);
225 rte_spinlock_lock(&fls->lock);
227 rte_spinlock_unlock(&fls->lock);
307 rte_spinlock_lock(&ls->lock);
331 rte_spinlock_unlock(&ls->lock);
[all...]
H A Dmisc.c111 rte_spinlock_lock(&ls->lock);
130 rte_spinlock_unlock(&ls->lock);
168 * grab free lock and keep it till we analyze related memchunks,
172 rte_spinlock_lock(&mt->pub.lock);
194 rte_spinlock_unlock(&mt->pub.lock);
296 /* grab free lock and check objects in free[] */
302 rte_spinlock_lock(&mt->pub.lock);
305 rte_spinlock_unlock(&mt->pub.lock);
341 rte_spinlock_lock(&ls->lock);
348 rte_spinlock_unlock(&ls->lock);
[all...]
H A Dmemtank.h47 rte_spinlock_t lock; member in struct:mchunk_list
/tldk/app/nginx/src/stream/
H A Dngx_stream_upstream_round_robin.h47 ngx_atomic_t lock; member in struct:ngx_stream_upstream_rr_peer_s
105 ngx_rwlock_wlock(&peer->lock); \
111 ngx_rwlock_unlock(&peer->lock); \
/tldk/app/nginx/src/http/
H A Dngx_http_upstream_round_robin.h49 ngx_atomic_t lock; member in struct:ngx_http_upstream_rr_peer_s
107 ngx_rwlock_wlock(&peer->lock); \
113 ngx_rwlock_unlock(&peer->lock); \

Completed in 16 milliseconds

12