Code example for ConditionVariable

Methods: open

                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 =;
                Looper.loop();  // Blocks forever until Looper.quit() is called.
                Log.v(TAG, "initializeMessageLooper: quit.");
        if (!startDone.block(WAIT_FOR_COMMAND_TO_COMPLETE)) {
            fail("initializeMessageLooper: start timeout");
     * Terminates the message looper thread. 
    private void terminateMessageLooper() throws Exception { 
Experience pair programming with AI  Get Codota for Java