Code example for ReentrantLock

Methods: newCondition

0
	} 
 
	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() {
		 
		@Override 
		public void run() { 
			while (!isExit) {