public void running ( ) { try { stateLock . writeLock ( ) . lock ( ) ; if ( state == State . Initial ) { state = State . Running ; stateChange . signalAll ( ) ; } } finally { stateLock . writeLock ( ) . unlock ( ) ; } }
Makes a transaction from the Initial state to the Running state or no transition if the current state is not Initial .