402403404405406407408409410411412
try { lpCanRun.await(); } catch (InterruptedException ignored) { } } if (state == State.LPSTOPPED) throw new EndOfSimulation(); } finally { lock.unlock(); } }
400401402403404405406407408409410
try { lp.wait(); if ((getFlowState(lp) != null) && (getFlowState(lp).isStopped())) { //msg(" yieldToExecutive stopping " + lp.getName()); throw new EndOfSimulation(); } } catch (InterruptedException e) {} } }