Lines Matching refs:waiters

1154 	uchar_t waiters;  in lwp_mutex_timedlock()  local
1228 fuword8_noerr(&lp->mutex_waiters, &waiters); in lwp_mutex_timedlock()
1310 waiters = iswanted(sqh->sq_queue.sq_first, &lwpchan); in lwp_mutex_timedlock()
1319 fuword8_noerr(&lp->mutex_waiters, &waiters); in lwp_mutex_timedlock()
1347 suword8_noerr(&lp->mutex_waiters, waiters); in lwp_mutex_timedlock()
1397 lwp_release(lwpchan_t *lwpchan, uchar_t *waiters, int sync_type) in lwp_release() argument
1430 *waiters = iswanted(tp->t_link, lwpchan); in lwp_release()
1444 *waiters = 0; in lwp_release()
1485 uchar_t waiters; in lwp_mutex_wakeup() local
1538 else if (lwp_release(&lwpchan, &waiters, 0)) in lwp_mutex_wakeup()
1539 suword8_noerr(&lp->mutex_waiters, waiters); in lwp_mutex_wakeup()
1572 uchar_t waiters; in lwp_cond_wait() local
1685 fuword8_noerr(&mp->mutex_waiters, &waiters); in lwp_cond_wait()
1686 if (waiters != 0) { in lwp_cond_wait()
1699 if (lwp_release(&m_lwpchan, &waiters, 0)) in lwp_cond_wait()
1700 suword8_noerr(&mp->mutex_waiters, waiters); in lwp_cond_wait()
1801 fuword8_noerr(&mp->mutex_waiters, &waiters); in lwp_cond_wait()
1802 if (waiters != 0) { in lwp_cond_wait()
1807 if (lwp_release(&m_lwpchan, &waiters, 0)) in lwp_cond_wait()
1808 suword8_noerr(&mp->mutex_waiters, waiters); in lwp_cond_wait()
1834 uchar_t waiters; in lwp_cond_signal() local
1866 fuword8_noerr(&cv->cond_waiters_kernel, &waiters); in lwp_cond_signal()
1867 if (waiters != 0) { in lwp_cond_signal()
1878 (void) lwp_release(&lwpchan, &waiters, T_WAITCVSEM); in lwp_cond_signal()
1879 suword8_noerr(&cv->cond_waiters_kernel, waiters); in lwp_cond_signal()
1903 uchar_t waiters; in lwp_cond_broadcast() local
1931 fuword8_noerr(&cv->cond_waiters_kernel, &waiters); in lwp_cond_broadcast()
1932 if (waiters != 0) { in lwp_cond_broadcast()
1957 uchar_t waiters; in lwp_sema_trywait() local
1991 fuword8_noerr(&sp->sema_waiters, &waiters); in lwp_sema_trywait()
1992 if (waiters != 0) { in lwp_sema_trywait()
1993 (void) lwp_release(&lwpchan, &waiters, T_WAITCVSEM); in lwp_sema_trywait()
1994 suword8_noerr(&sp->sema_waiters, waiters); in lwp_sema_trywait()
2025 uchar_t waiters; in lwp_sema_timedwait() local
2139 (void) lwp_release(&lwpchan, &waiters, T_WAITCVSEM); in lwp_sema_timedwait()
2140 suword8_noerr(&sp->sema_waiters, waiters); in lwp_sema_timedwait()
2164 uchar_t waiters; in lwp_sema_post() local
2198 fuword8_noerr(&sp->sema_waiters, &waiters); in lwp_sema_post()
2199 if (waiters) { in lwp_sema_post()
2200 (void) lwp_release(&lwpchan, &waiters, T_WAITCVSEM); in lwp_sema_post()
2201 suword8_noerr(&sp->sema_waiters, waiters); in lwp_sema_post()
2863 uchar_t waiters; in lwp_mutex_cleanup() local
2924 fuword8_noerr(&lp->mutex_waiters, &waiters); in lwp_mutex_cleanup()
2925 if (waiters != 0) { /* there are waiters */ in lwp_mutex_cleanup()
2931 &waiters, 0)) { in lwp_mutex_cleanup()
2933 waiters); in lwp_mutex_cleanup()
2942 fuword8_noerr(&lp->mutex_waiters, &waiters); in lwp_mutex_cleanup()
2943 if (waiters && in lwp_mutex_cleanup()
2944 lwp_release(&ent->lwpchan_lwpchan, &waiters, 0)) in lwp_mutex_cleanup()
2945 suword8_noerr(&lp->mutex_waiters, waiters); in lwp_mutex_cleanup()
3113 uchar_t waiters; in lwp_mutex_unlock() local
3185 fuword8_noerr(&lp->mutex_waiters, &waiters); in lwp_mutex_unlock()
3186 if (waiters) { in lwp_mutex_unlock()
3191 } else if (lwp_release(&lwpchan, &waiters, 0)) { in lwp_mutex_unlock()
3192 suword8_noerr(&lp->mutex_waiters, waiters); in lwp_mutex_unlock()