public final boolean isQueued ( Thread thread ) { if ( thread == null ) throw new NullPointerException ( ) ; for ( Node p = tail ; p != null ; p = p . prev ) if ( p . thread == thread ) return true ; return false ; }
Returns true if the given thread is currently queued .