debugger/wam_debugger/src/main/com/thesett/aima/logic/fol/wam/debugger/StartStopLifecycleBase.java
public void terminating()
    {
        try
        {
            stateLock.writeLock().lock();

            if (state == State.Running)
            {
                state = State.Shutdown;
                stateChange.signalAll();
            }
        }
        finally
        {
            stateLock.writeLock().unlock();
        }

    }
public void terminating()
    {
        try
        {
            stateLock.writeLock().lock();

            if (state == State.Running)
            {
                state = State.Shutdown;
                stateChange.signalAll();
            }
        }
        finally
        {
            stateLock.writeLock().unlock();
        }

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