question: void dropResource ( final R resource ) { final Thread tx = Thread . currentThread ( ) ; synchronized ( resourceQueues ) { final ResourceQueue < R , Thread > resourceQueue = resourceQueues . get ( resource ) ; if ( resourceQueue == null ) { throw new IllegalArgumentException ( "No such resource: " + resource ) ; } resourceQueue . clear ( tx ) ; resourceQueues . remove ( resource ) ; } }
target:  Drop a resource. The caller must have lock on the resource. All tasks blocked waiting for that resource will be aborted.