Lines Matching defs:thread
82 * If arc4random has been initialized and there is a thread key
83 * (i.e., libc was built with _REENTRANT), get the thread-local
90 * If we couldn't get the thread-local state, get the global
119 * should try, and fail, to allocate a thread-local arc4random
133 * Verify the PRNG is the global one, not the thread-local one,
145 * Start routine for a thread that just grabs an output from the
227 pthread_t thread;
273 * Create a new thread to grab output from the global state,
276 * in this thread, we can't use the global state any more.)
278 RZ(pthread_create(&thread, NULL, &arc4random_global_thread, NULL));
279 RZ(pthread_join(thread, NULL));
530 "Test the global state is used we run out of thread keys");
548 * Artificially disable the per-thread state, make it an
549 * invalid thread key altogether, and clear the epoch. Make
568 * meaning we used the global state and not the per-thread
578 "Test arc4random uses thread-local state");