Code example for Condition

Methods: await

0
		} 
	} 
 
	public void wait_for_settings() throws InterruptedException { 
		lock.lock();
		in_settings.await();
		lock.unlock();
	} 
 
	public void settings_done() { 
		Log.v(TAG, "settings_done()");
 
		lock.lock();
		in_settings.signal();
		lock.unlock();
	} 
 
	private static final String TAG = "lcm";
 
	private Intent settingsActivity;
	private Intent frontendActivity;