Code example for ReentrantLock

Methods: unlock

0
        return null; 
    } 
 
    public void unlockCanvasAndPost(Canvas canvas) {
        mSurface.unlockCanvasAndPost(canvas);
        mSurfaceLock.unlock();
    } 
 
    public Surface getSurface() {
        return mSurface;
    } 
 
    public Rect getSurfaceFrame() {
        return mSurfaceFrame;
    } 
 
    public void setSurfaceFrameSize(int width, int height) {
        mSurfaceFrame.top = 0;
        mSurfaceFrame.left = 0;
        mSurfaceFrame.right = width;
        mSurfaceFrame.bottom = height;