356357358359360361362363364365366
lock.lock(); try { Iterator<EventExecutionUnit> it = immediate.iterator(); while (it.hasNext()) { EventExecutionUnit eeu = it.next(); if (eeu.matches(task)) it.remove(); } immediate.offer(task); available.signalAll(); } finally {