Code example for ReentrantLock

Methods: newCondition

	private static final String TAG = VideoStreamingReceiverService.class.getName();
	// Binder given to clients 
	private final IBinder binder = new LocalBinder();
	private final ReentrantLock lock = new ReentrantLock();
	private final Condition suspended = lock.newCondition();
	private volatile boolean isPaused = false;
	private volatile boolean isExit = false;
	private Thread clientThread;
	private byte[] buffer;
	private int[] secondaryBuffer;
	private LinkedBlockingQueue<Bitmap> bitmaps = new LinkedBlockingQueue<Bitmap>(5);
	protected int received;
	protected int dropped;
	private Runnable clientThreadRunnable = new Runnable() {
		public void run() { 
Stop searching for code, let great code find you!  Add Codota to your java IDE