Code example for ReentrantReadWriteLock

	private final HashMap<View, String> mWindows = new HashMap<View, String>();
	private final ReentrantReadWriteLock mWindowsLock = new ReentrantReadWriteLock();
	private View mFocusedWindow;
	private final ReentrantReadWriteLock mFocusLock = new ReentrantReadWriteLock();
	private static ViewServer sServer;
	 * Returns a unique instance of the ViewServer. This method should only be 
	 * called from the main thread of your application. The server will have the 
	 * same lifetime as your process. 
	 * If your application does not have the <code>android:debuggable</code> 
	 * flag set in its manifest, the server returned by this method will be a 
	 * dummy object that does not do anything. This allows you to use the same 
	 * code in debug and release versions of your application. 
	 * @param context 
Stop searching for code, let great code find you!  Add Codota to your java IDE