Searched refs:thread_key (Results 1 – 2 of 2) sorted by relevance
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/ |
H A D | tsan_posix.cc | 19 struct thread_key { struct 24 thread_key(pthread_key_t key, pthread_mutex_t *mtx, int val, int *cnt) in thread_key() argument 33 thread_key *k = (thread_key *)v; in thread_secific_dtor() 49 thread_key *k = (thread_key *)p; in dtors_thread() 61 thread_key k1 = thread_key(key, &mtx, 42, &cnt); in TEST() 62 thread_key k2 = thread_key(key, &mtx, 43, &cnt); in TEST() 63 thread_key k3 = thread_key(key, &mtx, 44, &cnt); in TEST()
|
/netbsd-src/lib/libc/gen/ |
H A D | arc4random.c | 583 if (thr_keycreate(&arc4random_global.thread_key, in arc4random_prng_put() 603 prng = thr_getspecific(arc4random_global.thread_key); in arc4random_buf() 606 thr_setspecific(arc4random_global.thread_key, prng); in arc4random_buf() 808 prng = thr_getspecific(arc4random_global.thread_key); 479 thread_key_t thread_key; global() member
|