Code example for ConditionVariable

Methods: block

0
    } 
 
    public synchronized RawTexture get() { 
        if (mCancelled) {
            return null; 
        } else if (mResultReady.block(TIMEOUT)) {
            return mTexture;
        } else { 
            mCancelled = true;
            return null; 
        } 
    } 
 
    @Override 
    public boolean onGLIdle(GLCanvas canvas, boolean renderRequested) {
        if (!mCancelled) {
            try { 
                canvas.beginRenderTarget(mTexture);
                mRootPane.render(canvas);
                canvas.endRenderTarget();
            } catch (RuntimeException e) {