protected void incrementAndEnqueue(Runnable runner) {
        synchronized (LOCK) {
            openCount += 1;
            enqueue(runner);
        }
    }
Call from main thread.

@param runner The {@link Runnable} to be enqueued
zxing-android-embedded/src/com/journeyapps/barcodescanner/camera/CameraThread.java