Home
last modified time | relevance | path

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

/onnv-gate/usr/src/lib/libc/inc/
H A Dthr_uberdata.h432 #define QHASHSIZE (1 << QHASHSHIFT) /* power of 2 (1<<9 == 512) */ macro
436 & (QHASHSIZE - 1)) + (((type) == MX)? 0 : QHASHSIZE))
/onnv-gate/usr/src/lib/libc/port/threads/
H A Dsynch.c479 if ((data = mmap(NULL, 2 * QHASHSIZE * sizeof (queue_head_t), in queue_alloc()
484 for (i = 0; i < 2 * QHASHSIZE; qp++, i++) { in queue_alloc()
485 qp->qh_type = (i < QHASHSIZE)? MX : CV; in queue_alloc()
514 ASSERT(qp >= udp->queue_head && (qp - udp->queue_head) < 2 * QHASHSIZE); in QVERIFY()
522 qtype = ((qp - udp->queue_head) < QHASHSIZE)? MX : CV; in QVERIFY()
3932 if (fprintf(stderr, "\n%5d mutex queues:\n", QHASHSIZE) < 0 || in dump_queue_statistics()
3935 for (qn = 0, qp = udp->queue_head; qn < QHASHSIZE; qn++, qp++) { in dump_queue_statistics()
3945 if (fprintf(stderr, "\n%5d condvar queues:\n", QHASHSIZE) < 0 || in dump_queue_statistics()
3948 for (qn = 0; qn < QHASHSIZE; qn++, qp++) { in dump_queue_statistics()
H A Dthr.c1645 (void) memset(qp, 0, 2 * QHASHSIZE * sizeof (queue_head_t)); in postfork1_child()
1646 for (i = 0; i < 2 * QHASHSIZE; qp++, i++) { in postfork1_child()
1647 qp->qh_type = (i < QHASHSIZE)? MX : CV; in postfork1_child()