private boolean switchToIdle ( ) throws SIConnectionDroppedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "switchToIdle" ) ; final boolean noMoreWork ; synchronized ( priorityQueue ) { synchronized ( this ) { noMoreWork = ! isWorkAvailable ( ) ; idle = noMoreWork ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "switchToIdle" , Boolean . valueOf ( noMoreWork ) ) ; return noMoreWork ; }
Switch the idle flag back to true provided that there is no work available .