Code example for ConditionVariable

Methods: open

0
        final ConditionVariable var = new ConditionVariable();
        synchronized (this) {
            mIsQueueActive = false;
            queueEvent(new Runnable() {
                public void run() { 
                    var.open();
                } 
            }); 
        } 
 
        // Make sure all the runnables in the event queue is executed. 
        var.block();
        super.onDetachedFromWindow(); 
    } 
 
    protected Looper getTimerLooper() {
        return mLooper;
    } 
}