| /netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/ |
| H A D | tls.c | 43 static isc_mutex_t *locks = NULL; variable 51 LOCK(&locks[type]); in isc__tls_lock_callback() 53 UNLOCK(&locks[type]); in isc__tls_lock_callback() 86 locks = calloc(nlocks, sizeof(locks[0])); in tls_initialize() 87 isc_mutexblock_init(locks, nlocks); in tls_initialize() 147 if (locks != NULL) { in tls_shutdown() 148 isc_mutexblock_destroy(locks, nlocks); in tls_shutdown() 149 free(locks); in tls_shutdown() 150 locks = NULL; in tls_shutdown()
|
| /netbsd-src/external/gpl2/xcvs/dist/contrib/ |
| H A D | rcslock.in | 177 if ( $_ =~ /^locks: strict$/ ) 194 $locks{$curfile}++; 197 $locks{"$curfile" . "$2"} = $1 214 if ( defined $locks{$i . $ext} ) 221 if ( defined $locks{$i . $ext . $entry{"version"}} ) 223 if ( $login ne ($by = $locks{$i . $ext . $entry{"version"}}) )
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| H A D | sanitizer_deadlock_detector_test.cc | 165 set<uptr> locks; in RunRemoveNodeTest() local 166 locks.insert(l0); in RunRemoveNodeTest() 167 locks.insert(l1); in RunRemoveNodeTest() 168 locks.insert(l2); in RunRemoveNodeTest() 169 locks.insert(l3); in RunRemoveNodeTest() 170 locks.insert(l4); in RunRemoveNodeTest() 171 locks.insert(l5); in RunRemoveNodeTest() 174 locks.insert(lt); in RunRemoveNodeTest() 179 EXPECT_EQ(locks.size(), d.size()); in RunRemoveNodeTest() 195 locks.clear(); in RunRemoveNodeTest() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | rrwlock.c | 328 rrw_init(&rrl->locks[i], track_all); in rrm_init() 337 rrw_destroy(&rrl->locks[i]); in rrm_destroy() 362 rrw_enter_read(&rrl->locks[RRM_TD_LOCK()], tag); in rrm_enter_read() 371 rrw_enter_write(&rrl->locks[i]); in rrm_enter_write() 379 if (rrl->locks[0].rr_writer == curthread) { in rrm_exit() 381 rrw_exit(&rrl->locks[i], tag); in rrm_exit() 383 rrw_exit(&rrl->locks[RRM_TD_LOCK()], tag); in rrm_exit() 391 return (rrw_held(&rrl->locks[0], rw)); in rrm_held() 393 return (rrw_held(&rrl->locks[RRM_TD_LOCK()], rw)); in rrm_held()
|
| H A D | spa_misc.c | 502 spa_config_tryenter(spa_t *spa, int locks, void *tag, krw_t rw) in spa_config_tryenter() argument 506 if (!(locks & (1 << i))) in spa_config_tryenter() 512 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter() 520 spa_config_exit(spa, locks & ((1 << i) - 1), in spa_config_tryenter() 533 spa_config_enter(spa_t *spa, int locks, void *tag, krw_t rw) in spa_config_enter() argument 543 if (!(locks & (1 << i))) in spa_config_enter() 562 ASSERT(wlocks_held <= locks); in spa_config_enter() 566 spa_config_exit(spa_t *spa, int locks, void *tag) in spa_config_exit() argument 570 if (!(locks & (1 << i))) in spa_config_exit() 585 spa_config_held(spa_t *spa, int locks, krw_t rw) in spa_config_held() argument [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | readsyms.h | 91 locks(Task_locker*); 158 locks(Task_locker*); 207 locks(Task_locker*); 249 locks(Task_locker*); 294 locks(Task_locker*); 368 locks(Task_locker*); 420 locks(Task_locker*); 467 locks(Task_locker*);
|
| H A D | readsyms.cc | 71 locks(Task_locker* tl) in locks() function in gold::Unblock_token 152 Read_symbols::locks(Task_locker* tl) in locks() function in gold::Read_symbols 583 Add_symbols::locks(Task_locker* tl) in locks() function in gold::Add_symbols 664 Read_member::locks(Task_locker* tl) in locks() function in gold::Read_member 700 Check_script::locks(Task_locker* tl) in locks() function in gold::Check_script 740 Check_library::locks(Task_locker* tl) in locks() function in gold::Check_library 800 Start_group::locks(Task_locker* tl) in locks() function in gold::Start_group 834 Finish_group::locks(Task_locker* tl) in locks() function in gold::Finish_group 903 Read_script::locks(Task_locker*) in locks() function in gold::Read_script
|
| H A D | workqueue.h | 65 locks(Task_locker*) = 0; 172 locks(Task_locker*) in locks() function
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | readsyms.h | 91 locks(Task_locker*); 158 locks(Task_locker*); 207 locks(Task_locker*); 249 locks(Task_locker*); 294 locks(Task_locker*); 368 locks(Task_locker*); 420 locks(Task_locker*); 467 locks(Task_locker*);
|
| H A D | readsyms.cc | 71 locks(Task_locker* tl) in locks() function in gold::Unblock_token 152 Read_symbols::locks(Task_locker* tl) in locks() function in gold::Read_symbols 583 Add_symbols::locks(Task_locker* tl) in locks() function in gold::Add_symbols 664 Read_member::locks(Task_locker* tl) in locks() function in gold::Read_member 700 Check_script::locks(Task_locker* tl) in locks() function in gold::Check_script 740 Check_library::locks(Task_locker* tl) in locks() function in gold::Check_library 800 Start_group::locks(Task_locker* tl) in locks() function in gold::Start_group 834 Finish_group::locks(Task_locker* tl) in locks() function in gold::Finish_group 903 Read_script::locks(Task_locker*) in locks() function in gold::Read_script
|
| H A D | workqueue.h | 65 locks(Task_locker*) = 0; 172 locks(Task_locker*) in locks() function
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Examples/ |
| H A D | j_syscalls_example.txt | 45 311536 method java/util/concurrent/locks/AbstractQueuedSynchronizer.compareAndSetState 19 46 311536 method java/util/concurrent/locks/AbstractQueuedSynchronizer.release 19 47 311536 method java/util/concurrent/locks/AbstractQueuedSynchronizer.setState 19 48 311536 method java/util/concurrent/locks/ReentrantLock$NonfairSync.lock 19 49 311536 method java/util/concurrent/locks/ReentrantLock$Sync.tryRelease 19 50 311536 method java/util/concurrent/locks/ReentrantLock.lock 19 51 311536 method java/util/concurrent/locks/ReentrantLock.unlock 19 103 …311536 method java/util/concurrent/locks/AbstractOwnableSynchronizer.setExclusiveOwnerThread …
|
| H A D | j_methodcalls_example.txt | 281 311492 1 java/util/concurrent/locks/AbstractQueuedSynchronizer.<clinit> 282 311492 1 java/util/concurrent/locks/AbstractQueuedSynchronizer.getState 881 311492 16 java/util/concurrent/locks/AbstractOwnableSynchronizer.<init> 882 311492 16 java/util/concurrent/locks/AbstractQueuedSynchronizer.<init> 883 311492 16 java/util/concurrent/locks/ReentrantLock$NonfairSync.<init> 884 311492 16 java/util/concurrent/locks/ReentrantLock$Sync.<init> 885 311492 16 java/util/concurrent/locks/ReentrantLock.<init> 905 311492 19 java/util/concurrent/locks/AbstractQueuedSynchronizer.compareAndSetState 906 311492 19 java/util/concurrent/locks/AbstractQueuedSynchronizer.release 907 311492 19 java/util/concurrent/locks/AbstractQueuedSynchronizer.setState [all …]
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/ |
| H A D | j_syscalls_example.txt | 45 311536 method java/util/concurrent/locks/AbstractQueuedSynchronizer.compareAndSetState 19 46 311536 method java/util/concurrent/locks/AbstractQueuedSynchronizer.release 19 47 311536 method java/util/concurrent/locks/AbstractQueuedSynchronizer.setState 19 48 311536 method java/util/concurrent/locks/ReentrantLock$NonfairSync.lock 19 49 311536 method java/util/concurrent/locks/ReentrantLock$Sync.tryRelease 19 50 311536 method java/util/concurrent/locks/ReentrantLock.lock 19 51 311536 method java/util/concurrent/locks/ReentrantLock.unlock 19 103 …311536 method java/util/concurrent/locks/AbstractOwnableSynchronizer.setExclusiveOwnerThread …
|
| H A D | j_methodcalls_example.txt | 281 311492 1 java/util/concurrent/locks/AbstractQueuedSynchronizer.<clinit> 282 311492 1 java/util/concurrent/locks/AbstractQueuedSynchronizer.getState 881 311492 16 java/util/concurrent/locks/AbstractOwnableSynchronizer.<init> 882 311492 16 java/util/concurrent/locks/AbstractQueuedSynchronizer.<init> 883 311492 16 java/util/concurrent/locks/ReentrantLock$NonfairSync.<init> 884 311492 16 java/util/concurrent/locks/ReentrantLock$Sync.<init> 885 311492 16 java/util/concurrent/locks/ReentrantLock.<init> 905 311492 19 java/util/concurrent/locks/AbstractQueuedSynchronizer.compareAndSetState 906 311492 19 java/util/concurrent/locks/AbstractQueuedSynchronizer.release 907 311492 19 java/util/concurrent/locks/AbstractQueuedSynchronizer.setState [all …]
|
| /netbsd-src/external/bsd/unbound/dist/ |
| H A D | Makefile.in | 129 util/fptr_wlist.c util/locks.c util/log.c util/mini_event.c util/module.c \ 148 fptr_wlist.lo siphash.lo edns.lo locks.lo log.lo mini_event.lo module.lo net_help.lo \ 236 ASYNCLOOK_OBJ_LINK=$(ASYNCLOOK_OBJ) log.lo locks.lo $(CHECKLOCK_OBJ) $(COMPAT_OBJ) @ASYNCLOOK_ALLOC… 471 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 709 $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \ 716 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag… 724 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag… 730 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/m… 733 …$(srcdir)/util/data/msgreply.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/u… 739 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/sldns/pkthd… [all …]
|
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | request.c | 65 isc_mutex_t locks[DNS_REQUEST_NLOCKS]; global() member
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | request.c | 66 isc_mutex_t locks[DNS_REQUEST_NLOCKS]; member 177 isc_mutex_init(&requestmgr->locks[i]); in dns_requestmgr_create() 395 isc_mutex_destroy(&requestmgr->locks[i]); in mgr_destroy() 1171 LOCK(&request->requestmgr->locks[request->hash]); in do_cancel() 1177 UNLOCK(&request->requestmgr->locks[request->hash]); in do_cancel() 1188 LOCK(&request->requestmgr->locks[request->hash]); in dns_request_cancel() 1194 UNLOCK(&request->requestmgr->locks[request->hash]); in dns_request_cancel() 1252 LOCK(&request->requestmgr->locks[request->hash]); in dns_request_destroy() 1256 UNLOCK(&request->requestmgr->locks[request->hash]); in dns_request_destroy() 1306 LOCK(&request->requestmgr->locks[request->hash]); in req_connected() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/ |
| H A D | CRYPTO_THREAD_run_once.pod | 46 In particular, this can be used to allocate locks in a thread-safe manner, 56 CRYPTO_THREAD_read_lock() locks the provided B<lock> for reading. 60 CRYPTO_THREAD_write_lock() locks the provided B<lock> for writing. 141 Finalization of locks is an advanced topic, not covered in this example. 145 repeatedly load/unload shared libraries that allocate locks.
|
| /netbsd-src/external/gpl2/rcs/dist/src/ |
| H A D | co.c | 395 int locks = lockflag ? findlock(false, &targetdelta) : 0; variable 401 switch (locks) { 473 locks += lockflag; 474 if (1 < locks) 475 rcswarn("You now have %d locks.", locks);
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/builtins/ |
| H A D | atomic.c | 74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} }; variable 87 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0 variable 104 static Lock locks[SPINLOCK_COUNT]; variable 122 return locks + (hash & SPINLOCK_MASK); in lock_for_pointer()
|
| /netbsd-src/external/ibm-public/postfix/dist/proto/ |
| H A D | lmdb_table | 64 # Postfix uses fcntl(2) locks with whole-file granularity. 74 # Note that fcntl(2) locks do not protect transactions within 77 # protect its transactions with in-process locks, in addition 78 # to the per-process fcntl(2) locks.
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/std/ |
| H A D | shared_mutex | 219 // We retry if we exceeded the maximum number of read locks supported by 236 // If the maximum number of read locks has been exceeded, we just fail 265 // The remaining bits are the count of reader locks. 268 // set or the maximum number of reader locks is held, then increment the 272 // otherwise if the maximum number of reader locks was held signal gate1 277 // gate2 while the number of reader locks is non-zero. 281 // This means that when no reader locks are held readers and writers get 282 // equal priority. When one or more reader locks is held a writer gets 283 // priority and no more reader locks can be taken while the writer is 302 // The number of reader locks currently held. _M_mut must be locked. [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/std/ |
| H A D | shared_mutex | 224 // We retry if we exceeded the maximum number of read locks supported by 241 // If the maximum number of read locks has been exceeded, we just fail 270 // The remaining bits are the count of reader locks. 273 // set or the maximum number of reader locks is held, then increment the 277 // otherwise if the maximum number of reader locks was held signal gate1 282 // gate2 while the number of reader locks is non-zero. 286 // This means that when no reader locks are held readers and writers get 287 // equal priority. When one or more reader locks is held a writer gets 288 // priority and no more reader locks can be taken while the writer is 307 // The number of reader locks currently held. _M_mut must be locked. [all …]
|
| /netbsd-src/external/mpl/bind/dist/lib/isc/ |
| H A D | tls.c | 62 static isc_mutex_t *locks = NULL; 70 LOCK(&locks[type]); in isc__tls_lock_callback() 72 UNLOCK(&locks[type]); in isc__tls_lock_callback() 182 locks = isc_mem_cget(isc__tls_mctx, nlocks, sizeof(locks[0])); in isc_tlsctx_free() 183 isc_mutexblock_init(locks, nlocks); in isc_tlsctx_free() 229 if (locks != NULL) { 230 isc_mutexblock_destroy(locks, nlocks); in isc_tlsctx_createclient() 231 isc_mem_cput(isc__tls_mctx, locks, nlocks, sizeof(locks[ in isc_tlsctx_createclient() 65 static isc_mutex_t *locks = NULL; global() variable [all...] |