Lines Matching defs:lock
54 PRLock *lock;
59 lock = PR_NewLock();
60 if( !lock )
66 cvar = PR_NewCondVar( lock );
69 PR_DestroyLock( lock );
94 ** monitor's condition variable and that the lock is not held.
100 PR_DestroyLock( mon->cvar->lock );
106 ** Enter the lock associated with the monitor. If the calling thread currently
113 if( mon->cvar->lock->owner == find_thread( NULL ) )
119 PR_Lock( mon->cvar->lock );
132 if( mon->cvar->lock->owner != find_thread( NULL ) )
138 return( PR_Unlock( mon->cvar->lock ) );
150 ** the wait has finished the thread regains control of the monitors lock
168 if( mon->cvar->lock->owner != me ) return( PR_FAILURE );
188 if( mon->cvar->lock->owner != find_thread( NULL ) )
205 if( mon->cvar->lock->owner != find_thread( NULL ) )