Code example for ConditionVariable

Methods: block, close

0
                st.release(); 
            } 
        } 
 
        // Should be called from other thread. 
        public void sendMessageSync(int msg) { 
            mEglThreadBlockVar.close(); 
            sendEmptyMessage(msg); 
            mEglThreadBlockVar.block(); 
        } 
 
    } 
 
    public MosaicPreviewRenderer(SurfaceTexture tex, int w, int h, boolean isLandscape) { 
        mMosaicOutputSurfaceTexture = tex; 
        mWidth = w; 
        mHeight = h; 
        mIsLandscape = isLandscape; 
 
        mEglThread = new HandlerThread("PanoramaRealtimeRenderer"); 
        mEglThread.start();