void dequeue(JobQueue queue, InternalJob job) { synchronized (lock) { queue.remove(job); } }
void dequeue(JobQueue queue, InternalJob job) { synchronized (lock) { queue.remove(job); } }
void dequeue(JobQueue queue, InternalJob job) { synchronized (lock) { queue.remove(job); } }
/** * The given object has changed priority. Reshuffle the heap until it is * valid. */ public void resort(InternalJob entry) { remove(entry); enqueue(entry); }
/** * The given object has changed priority. Reshuffle the heap until it is * valid. */ public void resort(InternalJob entry) { remove(entry); enqueue(entry); }
/** * The given object has changed priority. Reshuffle the heap until it is * valid. */ public void resort(InternalJob entry) { remove(entry); enqueue(entry); }
/** * The given object has changed priority. Reshuffle the heap until it is * valid. */ public void resort(InternalJob entry) { remove(entry); enqueue(entry); }
case Job.WAITING : try { waiting.remove(job); } catch (RuntimeException e) { Assert.isLegal(false, "Tried to remove a job that wasn't in the queue"); //$NON-NLS-1$ case Job.SLEEPING : try { sleeping.remove(job); } catch (RuntimeException e) { Assert.isLegal(false, "Tried to remove a job that wasn't in the queue"); //$NON-NLS-1$
case Job.WAITING : try { waiting.remove(job); } catch (RuntimeException e) { Assert.isLegal(false, "Tried to remove a job that wasn't in the queue"); //$NON-NLS-1$ case Job.SLEEPING : try { sleeping.remove(job); } catch (RuntimeException e) { Assert.isLegal(false, "Tried to remove a job that wasn't in the queue"); //$NON-NLS-1$
case Job.WAITING : try { waiting.remove(job); } catch (RuntimeException e) { Assert.isLegal(false, "Tried to remove a job that wasn't in the queue"); //$NON-NLS-1$ case Job.SLEEPING : try { sleeping.remove(job); } catch (RuntimeException e) { Assert.isLegal(false, "Tried to remove a job that wasn't in the queue"); //$NON-NLS-1$
case Job.WAITING : try { waiting.remove(job); } catch (RuntimeException e) { Assert.isLegal(false, "Tried to remove a job that wasn't in the queue"); //$NON-NLS-1$ case Job.SLEEPING : try { sleeping.remove(job); } catch (RuntimeException e) { Assert.isLegal(false, "Tried to remove a job that wasn't in the queue"); //$NON-NLS-1$