private void unlockRunState(int oldRunState, int newRunState) {
        if (!U.compareAndSwapInt(this, RUNSTATE, oldRunState, newRunState)) {
            Object lock = stealCounter;
            runState = newRunState;              // clears RSIGNAL bit
            if (lock != null)
                synchronized (lock) { lock.notifyAll(); }
        }
    }
private void unlockRunState(int oldRunState, int newRunState) {
        if (!U.compareAndSwapInt(this, RUNSTATE, oldRunState, newRunState)) {
            Object lock = stealCounter;
            runState = newRunState;              
            if (lock != null)
                synchronized (lock) { lock.notifyAll(); }
        }
    }
private void unlockRunState ( int oldRunState , int newRunState ) { if ( ! U . compareAndSwapInt ( this , RUNSTATE , oldRunState , newRunState ) ) { Object lock = stealCounter ; runState = newRunState ; // clears RSIGNAL bit if ( lock != null ) synchronized ( lock ) { lock . notifyAll ( ) ; } } }
Unlocks and sets runState to newRunState.

@param oldRunState a value returned from lockRunState
@param newRunState the next value (must have lock bit clear).
Unlocks and sets runState to newRunState .