Code example for Thread

Methods: join

0
	 * @param unconditional unused. 
	 */ 
	public void destroyApp(boolean unconditional) {
		main.runThread = false;
		try { 
			thread.join();
		} catch (Exception ex) {}
 
		thread = null;
		Game.persist(); 
		Leaderboard.persist(); 
	} 
 
	/** 
	 * Start app. Open and load preferences and build GUI. 
	 */ 
	public void startApp() { 
		try { 
			FontEngine.init(); 
			Leaderboard.init();