Code example for Lock

Methods: newCondition

0
	/** Lock combined ui condition */ 
	private final Lock _uiLock = new ReentrantLock();
	 
	/** Is signaled if the ui callback has been processed 
	 */ 
	private final Condition _uiCond = _uiLock.newCondition();
	 
	public boolean getEnabled() 
	{ 
		synchronized(_syncLock)
		{ 
			return _enabled;
		} 
	} 
	 
	public void setEnabled(boolean value)
	{ 
		synchronized(_syncLock)
		{ 
			_enabled = value;
		}