Code example for ConditionVariable

Methods: open

0
                Log.v(TAG, "start loopRun");
                // Save the looper so that we can terminate this thread  
                // after we are done with it. 
                mLooper = Looper.myLooper();
                mCamera = Camera.open(CAMERA_ID);
                startDone.open();
                Looper.loop();  // Blocks forever until Looper.quit() is called.
                Log.v(TAG, "initializeMessageLooper: quit.");
            } 
        }.start();
 
        if (!startDone.block(WAIT_FOR_COMMAND_TO_COMPLETE)) {
            fail("initializeMessageLooper: start timeout");
        } 
    } 
     
    /* 
     * Terminates the message looper thread. 
     */ 
    private void terminateMessageLooper() throws Exception { 
Stop searching for code, let great code find you!  Add Codota to your java IDE