Home
last modified time | relevance | path

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

/lib/libc/posix/
Dpthread.c39 #define THREAD_HASH_SLOTS 32 macro
42 static pthreadList __threads[THREAD_HASH_SLOTS];
58 for (i = 0; i < THREAD_HASH_SLOTS; i++) { in __pthread_init()
74 TAILQ_INSERT_HEAD(&__threads[thr->tid % THREAD_HASH_SLOTS], thr, threadTable); in __pthread_init()
85 TAILQ_FOREACH(thr, &__threads[tid % THREAD_HASH_SLOTS], threadTable) { in pthread_self()
133 TAILQ_INSERT_HEAD(&__threads[thr->tid % THREAD_HASH_SLOTS], thr, threadTable); in pthread_create()
163 TAILQ_REMOVE(&__threads[thr->tid % THREAD_HASH_SLOTS], thr, threadTable); in pthread_join()