Code example for Condition

Methods: signalAll

0
	 
	public void waxed() { 
		lock.lock(); 
		try { 
			waxOn = true; 
			condition.signalAll(); 
		} finally { 
			lock.unlock(); 
		} 
	} 
	 
	public void buffed() { 
		lock.lock(); 
		try { 
			waxOn = false; 
			condition.signalAll(); 
		} finally { 
			lock.unlock(); 
		} 
	}