pub fn push_thread(&mut self, tid : uint, is_notify : bool) {
		if is_notify {
			// assure we hold the monitor
			assert!(self.is_locked_by_thread(tid));
			self.waiters_prio.push((false,tid,self.lock_count));
			return;
		}

		self.waiters.push(tid);
	}
// ----------------------------------------------
// Add a thread to the list of threads wishing to lock
// the monitor. The thread is identified by its tid.
// The `is_notify` parameter specifies whether the thread
// needs to be notified using notify_{all,one} before it 
// can run again. This is only allowed if the thread already
// holds the lock on the monitor.
Add a thread to the list of threads wishing to lock
the monitor. The thread is identified by its tid.
The `is_notify` parameter specifies whether the thread
needs to be notified using notify_{all,one} before it
can run again. This is only allowed if the thread already
holds the lock on the monitor.
Add a thread to the list of threads wishing to lock the monitor . The thread is identified by its tid . The ` is_notify ` parameter specifies whether the thread needs to be notified using notify_ { all one } before it can run again . This is only allowed if the thread already holds the lock on the monitor .
pub fn push_thread(&mut self, tid : uint, is_notify : bool) {
		if is_notify {
			// assure we hold the monitor
			assert!(self.is_locked_by_thread(tid));
			self.waiters_prio.push((false,tid,self.lock_count));
			return;
		}
		self.waiters.push(tid);
	}
pub fn push_thread ( & mut self , tid : uint , is_notify : bool ) { if is_notify { // assure we hold the monitor assert ! ( self is_locked_by_thread ( tid ) ) ; self . waiters_prio . push ( ( false , tid , self . lock_count ) ) ; return ; } self . waiters . push ( tid ) ; }
Add a thread to the list of threads wishing to lock
the monitor.
Add a thread to the list of threads wishing to lock the monitor .
&mut self
tid
uint
is_notify
bool