161162163164165166167168169170171
} } private ChangeEvent poll() { synchronized (taskLock) { ChangeEvent event = queue.poll(); if (event == null) { task = null; } return event; }
189190191192193194195196197198199
if (dropped) { write(droppedOutputEvent); dropped = false; } final ChangeEvent event = poll(); if (event == null) { break; } write(event);