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 .