/** * Releases the lock for state changes for the specified transition event. * @param transitionEvent */ protected final void unlockStateChange(ModuleEvent transitionEvent) { if (stateChangeLock.getHoldCount() == 0 || !stateTransitionEvents.contains(transitionEvent)) throw new IllegalMonitorStateException("Current thread does not hold the state change lock for: " + transitionEvent); //$NON-NLS-1$ stateTransitionEvents.remove(transitionEvent); stateChangeLock.unlock(); }
/** * Releases the lock for state changes for the specified transition event. * @param transitionEvent */ protected final void unlockStateChange(ModuleEvent transitionEvent) { if (stateChangeLock.getHoldCount() == 0 || !stateTransitionEvents.contains(transitionEvent)) throw new IllegalMonitorStateException("Current thread does not hold the state change lock for: " + transitionEvent); //$NON-NLS-1$ stateTransitionEvents.remove(transitionEvent); stateChangeLock.unlock(); }
/** * Releases the lock for state changes for the specified transition event. * @param transitionEvent */ protected final void unlockStateChange(ModuleEvent transitionEvent) { if (stateChangeLock.getHoldCount() == 0 || !stateTransitionEvents.contains(transitionEvent)) throw new IllegalMonitorStateException("Current thread does not hold the state change lock for: " + transitionEvent); //$NON-NLS-1$ stateTransitionEvents.remove(transitionEvent); stateChangeLock.unlock(); }
/** * Releases the lock for state changes for the specified transition event. * @param transitionEvent */ protected final void unlockStateChange(ModuleEvent transitionEvent) { if (stateChangeLock.getHoldCount() == 0 || !stateTransitionEvents.contains(transitionEvent)) throw new IllegalMonitorStateException("Current thread does not hold the state change lock for: " + transitionEvent); //$NON-NLS-1$ stateTransitionEvents.remove(transitionEvent); stateChangeLock.unlock(); }
/** * Releases the lock for state changes for the specified transition event. * @param transitionEvent */ protected final void unlockStateChange(ModuleEvent transitionEvent) { if (stateChangeLock.getHoldCount() == 0 || !stateTransitionEvents.contains(transitionEvent)) throw new IllegalMonitorStateException("Current thread does not hold the state change lock for: " + transitionEvent); //$NON-NLS-1$ stateTransitionEvents.remove(transitionEvent); stateChangeLock.unlock(); }
/** * Releases the lock for state changes for the specified transition event. * @param transitionEvent */ protected final void unlockStateChange(ModuleEvent transitionEvent) { if (stateChangeLock.getHoldCount() == 0 || !stateTransitionEvents.contains(transitionEvent)) throw new IllegalMonitorStateException("Current thread does not hold the state change lock for: " + transitionEvent); //$NON-NLS-1$ stateTransitionEvents.remove(transitionEvent); stateChangeLock.unlock(); }
stateChangeLock.unlock();
stateChangeLock.unlock();
stateChangeLock.unlock();
stateChangeLock.unlock();
stateChangeLock.unlock();
stateChangeLock.unlock();
stateChangeLock.unlock(); } else { stateTransitionEvents.add(transitionEvent);
stateChangeLock.unlock(); } else { stateTransitionEvents.add(transitionEvent);
AtomicReference<ContainerEvent> eventReference = forStop; eventReference.compareAndSet(null, containerEvent); stateChangeLock.unlock(); synchronized (eventReference) { eventReference.notifyAll();
AtomicReference<ContainerEvent> eventReference = forStop; eventReference.compareAndSet(null, containerEvent); stateChangeLock.unlock(); synchronized (eventReference) { eventReference.notifyAll();
getRevisions().getContainer().close(); } finally { stateChangeLock.unlock();
getRevisions().getContainer().close(); } finally { stateChangeLock.unlock();
getRevisions().getContainer().close(); } finally { stateChangeLock.unlock();
getRevisions().getContainer().close(); } finally { stateChangeLock.unlock();