Lines Matching defs:cvar
48 PRCondVar *cvar;
59 cvar = PR_NewCondVar(lock);
60 if (!cvar) {
65 mon->cvar = cvar;
86 PR_DestroyLock(mon->cvar->lock);
87 PR_DestroyCondVar(mon->cvar);
96 if (mon->cvar->lock->owner == _PR_MD_CURRENT_THREAD()) {
99 PR_Lock(mon->cvar->lock);
111 if (mon->cvar->lock->owner == _PR_MD_CURRENT_THREAD()) {
115 if (PR_TestAndLock(mon->cvar->lock)) {
128 if (mon->cvar->lock->owner != _PR_MD_CURRENT_THREAD()) {
132 return PR_Unlock(mon->cvar->lock);
143 return (mon->cvar->lock->owner == _PR_MD_CURRENT_THREAD()) ?
170 if (mon->cvar->lock->owner != me) return PR_FAILURE;
175 status = _PR_WaitCondVar(me, mon->cvar, mon->cvar->lock, ticks);
190 if (mon->cvar->lock->owner != me) return PR_FAILURE;
191 PR_NotifyCondVar(mon->cvar);
203 if (mon->cvar->lock->owner != me) return PR_FAILURE;
204 PR_NotifyAllCondVar(mon->cvar);
214 if (mon->cvar->lock->owner) {
216 mon, mon->cvar->lock->owner->id,
217 mon->cvar->lock->owner, mon->entryCount);