code: 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;
     }
docs: Switch the 'idle' flag back to 'true', provided that there is no work available.
  @return true iff 'idle' was set to 'true'; false iff there is now work available.
  @throws SIConnectionDroppedException