/** * Suspends the caller of this method until this background thread has * emptied the dirty region queue. */ public void suspendCallerWhileDirty() { boolean isDirty; do { synchronized (fDirtyRegionQueue) { isDirty= fDirtyRegionQueue.getSize() > 0; if (isDirty) { try { fDirtyRegionQueue.wait(); } catch (InterruptedException x) { } } } } while (isDirty); }
/** * Suspends the caller of this method until this background thread has * emptied the dirty region queue. */ public void suspendCallerWhileDirty() { boolean isDirty; do { synchronized (fDirtyRegionQueue) { isDirty= fDirtyRegionQueue.getSize() > 0; if (isDirty) { try { fDirtyRegionQueue.wait(); } catch (InterruptedException x) { } } } } while (isDirty); }
if (0 == fDirtyRegionQueue.getSize()) { synchronized (this) { fIsDirty= fProgressMonitor.isCanceled();
if (0 == fDirtyRegionQueue.getSize()) { synchronized (this) { fIsDirty= fProgressMonitor.isCanceled();