Code example for ReentrantReadWriteLock

Methods: readLockwriteLock

	public static final int TIME_SCROLL_WIDTH = (int) (Global.W_FRAME * Global.SENSOR_SPLIT_RIGHT);
	public static final int TOLERANCE = 50;
	public static final int W_ARROW = 35;
	public static final int TIME_HEIGHT = 20;
	private final ReentrantReadWriteLock rwl = new ReentrantReadWriteLock();
	private final Lock rLock = rwl.readLock();
	private final Lock wLock = rwl.writeLock();
	private float mPxPerPos;
	private int wImage;
	private int hImage;
	private BufferedImage mCursorBufferedImage;
	private BufferedImage mStartBufferedImage;
	private BufferedImage mStopBufferedImage;
	private SensorsScenarioModel mModel;
Connect your IDE to all the code out there  Get Codota for Java