public boolean removeWaitingWork ( final T context ) { write . lock ( ) ; try { boolean result = waitingWork . remove ( context ) ; if ( result ) { workChanged . signalAll ( ) ; } return result ; } finally { write . unlock ( ) ; } }
Removes work from the queue .