Home
last modified time | relevance | path

Searched refs:readers (Results 1 – 18 of 18) sorted by relevance

/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_rwlock.c55 ngx_atomic_uint_t readers; in ngx_rwlock_rlock() local
58 readers = *lock; in ngx_rwlock_rlock()
60 if (readers != NGX_RWLOCK_WLOCK in ngx_rwlock_rlock()
61 && ngx_atomic_cmp_set(lock, readers, readers + 1)) in ngx_rwlock_rlock()
74 readers = *lock; in ngx_rwlock_rlock()
77 && ngx_atomic_cmp_set(lock, readers, readers + 1)) in ngx_rwlock_rlock()
92 ngx_atomic_uint_t readers; in ngx_rwlock_unlock() local
94 readers = *lock; in ngx_rwlock_unlock()
96 if (readers == NGX_RWLOCK_WLOCK) { in ngx_rwlock_unlock()
103 if (ngx_atomic_cmp_set(lock, readers, readers - 1)) { in ngx_rwlock_unlock()
[all …]
/f-stack/freebsd/contrib/ck/include/
H A Dck_bytelock.h62 for (i = 0; i < sizeof bytelock->readers; i++) in ck_bytelock_init()
63 bytelock->readers[i] = false; in ck_bytelock_init()
84 CK_BYTELOCK_TYPE *readers = (void *)bytelock->readers; in ck_bytelock_write_lock() local
92 if (slot <= sizeof bytelock->readers) in ck_bytelock_write_lock()
102 while (CK_BYTELOCK_LOAD(&readers[i]) != false) in ck_bytelock_write_lock()
132 ck_pr_store_8(&bytelock->readers[slot - 1], true); in ck_bytelock_read_lock()
139 if (slot > sizeof bytelock->readers) { in ck_bytelock_read_lock()
158 ck_pr_fas_8(&bytelock->readers[slot], true); in ck_bytelock_read_lock()
161 ck_pr_store_8(&bytelock->readers[slot], true); in ck_bytelock_read_lock()
173 ck_pr_store_8(&bytelock->readers[slot], false); in ck_bytelock_read_lock()
[all …]
H A Dck_brlock.h57 struct ck_brlock_reader *readers; member
68 br->readers = NULL; in ck_brlock_init()
89 for (cursor = br->readers; cursor != NULL; cursor = cursor->next) { in ck_brlock_write_lock()
126 for (cursor = br->readers; cursor != NULL; cursor = cursor->next) { in ck_brlock_write_trylock()
151 reader->next = ck_pr_load_ptr(&br->readers); in ck_brlock_read_register()
154 ck_pr_store_ptr(&br->readers, reader); in ck_brlock_read_register()
172 br->readers = reader->next; in ck_brlock_read_unregister()
/f-stack/freebsd/kern/
H A Dkern_rmlock.c891 int readers; member
967 pcpu->readers++; in rms_int_readers_inc()
976 pcpu->readers--; in rms_int_readers_dec()
988 rms->readers = 0; in rms_init()
1076 MPASS(rms->readers > 0); in rms_runlock_fallback()
1079 rms->readers--; in rms_runlock_fallback()
1080 if (rms->readers == 0) in rms_runlock_fallback()
1124 atomic_add_int(&rms->readers, pcpu->readers); in rms_action_func()
1125 pcpu->readers = 0; in rms_action_func()
1210 if (rms->readers > 0) { in rms_wlock()
[all …]
/f-stack/dpdk/doc/guides/prog_guide/
H A Drcu_lib.rst17 Since these data structures are lockless, the writers and readers
20 to the allocator, without knowing that the readers are not
26 allocator. This will ensure that new readers will not get a reference to
30 memory allocator only after knowing that all the readers have stopped
82 The writer has to poll the readers to identify the end of grace period.
91 reporting) in the readers.
95 to do other work without having to block until the readers report their
172 polls till all the readers enter the quiescent state or go offline. This API
201 #. Should check if the readers have completed a grace period and free the resources.
H A Dhash_lib.rst53 readers continue to use the position even after the entry is deleted.
87 … reset are protected from other writer threads. With only this flag set, readers are not protected…
90 …(i.e., application does not need to stop the readers from accessing the hash table until writers f…
103 …ency flag is set. The application should free the position after all the readers have stopped refe…
104 …Where required, the application can make use of RCU mechanisms to determine when the readers have …
179 readers are not referencing the position anymore. User can configure integrated RCU QSBR or use ext…
291 …wait till the readers are not referencing the position returned during add/delete flow and then fr…
292 … RCU mechanisms can be used to find out when the readers are not referencing the position anymore.
H A Dlpm_lib.rst171 * If RCU is used, tbl8s are reclaimed when readers are in quiescent state.
173 When the LPM is not using RCU, tbl8 group can be freed immediately even though the readers might be…
H A Defd_lib.rst293 section is to explain to readers the high-level implementation of
425 Carnegie Mellon University (CMU), interested readers can refer to the paper
H A Dtrace_lib.rst262 The purpose of the metadata stream is to make CTF readers know how to parse a
H A Dmember_lib.rst50 large set of applications and workloads. Interested readers can refer to
252 priority one is inserted in the corresponding sub-table (interested readers can
H A Dpacket_framework.rst1113 The threads performing table lookup are actually table writers rather than just readers.
1114 Even if the specific table lookup algorithm is thread-safe for multiple readers
1134 … the writer update is done, the writer can signal to the readers and busy wait until all readers s…
/f-stack/freebsd/sys/
H A D_rmlock.h80 int readers; member
/f-stack/freebsd/contrib/device-tree/src/arm/
H A De60k02.dtsi11 * found in ebook-readers like the Kobo Clara HD (with i.MX6SLL) and
/f-stack/tools/libxo/doc/
H A Dfield-roles.rst133 for human readers. By marking these distinctly, HTML usage scenarios
H A Dxolint.rst361 to human readers.
/f-stack/dpdk/doc/guides/rel_notes/
H A Drelease_18_11.rst278 Lock free reader/writer concurrency prevents the readers from getting
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dperformance_thread.rst239 forwarding application, and readers are advised to familiarize themselves with
/f-stack/freebsd/contrib/dev/acpica/
H A Dchanges.txt9128 namespace walks (readers), but block a dynamic table unload until it can