Code example for ConditionVariable

Methods: blockclose

0
            } 
        } 
    }; 
    
    private void waitForPreviewDone() { 
        if (!mPreviewDone.block(WAIT_FOR_COMMAND_TO_COMPLETE)) {
            Log.v(TAG, "waitForPreviewDone: timeout");
        } 
        mPreviewDone.close();
    } 
 
    private void waitForSnapshotDone() { 
        if (!mSnapshotDone.block(MediaNames.WAIT_SNAPSHOT_TIME)) {
            // timeout could be expected or unexpected. The caller will decide. 
            Log.v(TAG, "waitForSnapshotDone: timeout");
        } 
        mSnapshotDone.close();
    } 
 
 
Connect your IDE to all the code out there  Get Codota for Java