src/concurrent/dotnet/ThreadPool.cs
/// <summary>
/// Has all the work in this queue finished processing and
/// all threads terminated.
/// </summary>
Has all the work in this queue finished processing and
all threads terminated.
Has all the work in this queue finished processing and all threads terminated .
public bool isDone()
    {
      if (state == DONE) return true;
      lock (this)
      {
        if (state == RUNNING || workers.Count > 0) return false;
        state = DONE;
        return true;
      }
    }
public bool isDone ( ) { if ( state == DONE ) return true ; lock ( this ) { if ( state == RUNNING || workers . Count > 0 ) return false ; state = DONE ; return true ; } }
Has all the work in this queue finished processing and
all threads terminated.
Has all the work in this queue finished processing and all threads terminated .