pub fn notify_one(&mut self, thread : &ThreadContext) {
		// assure we hold the monitor
		assert!(self.is_locked_by_thread(thread.get_tid()));
		
		let mut i = 0;
		let len = self.waiters.len();

		while i < len {
			match self.waiters_prio[i] {
				(false, tid, lock_count) => {
					self.waiters_prio[i] = (true, tid, lock_count);
					return;
				},

				_ => ()
			}
			i += 1;
		}
	}
// ----------------------------------------------
// Notify one wait()ing thread, if any. The corresponding
// thread is unblocked and resumes operation. It automatically
// locks the mutex again.
//
// The monitor must be locked by the current thread.
Notify one wait()ing thread, if any. The corresponding
thread is unblocked and resumes operation. It automatically
locks the mutex again.

The monitor must be locked by the current thread.
Notify one wait () ing thread if any . The corresponding thread is unblocked and resumes operation . It automatically locks the mutex again . The monitor must be locked by the current thread .
pub fn notify_one(&mut self, thread : &ThreadContext) {
		// assure we hold the monitor
		assert!(self.is_locked_by_thread(thread.get_tid()));
		let mut i = 0;
		let len = self.waiters.len();
		while i < len {
			match self.waiters_prio[i] {
				(false, tid, lock_count) => {
					self.waiters_prio[i] = (true, tid, lock_count);
					return;
				},
				_ => ()
			}
			i += 1;
		}
	}
pub fn notify_one ( & mut self , thread : & ThreadContext ) { // assure we hold the monitor assert ! ( self is_locked_by_thread ( thread get_tid ( ) ) ) ; let mut i = 0 ; let len = self . waiters . len ( ) ; while i < len { match self . waiters_prio [ i ] { ( false , tid , lock_count ) => { self . waiters_prio [ i ] = ( true , tid , lock_count ) ; return ; } , _ => ( ) } i += 1 ; } }
Notify one wait()ing thread, if any.
Notify one wait () ing thread if any .
&mut self
thread
&ThreadContext