diff --git a/xpcom/threads/nsThread.h b/xpcom/threads/nsThread.h index dc40ecca2f22..8bd1a74815f6 100644 --- a/xpcom/threads/nsThread.h +++ b/xpcom/threads/nsThread.h @@ -90,6 +90,8 @@ public: virtual ~nsThreadPool(); nsIRunnable* GetRequest(nsIThread* currentThread); + void RequestDone(nsIRunnable *request); + static PRBool InterruptThreads(nsISupports* aElement, void *aData); @@ -101,12 +103,13 @@ protected: nsresult RemoveThread(nsIThread* currentThread); nsCOMPtr mThreads; - nsCOMPtr mRequests; + nsCOMPtr mPendingRequests; + nsCOMPtr mRunningRequests; PRLock* mLock; PRCondVar* mThreadExit; - PRCondVar* mRequestAdded; - PRCondVar* mRequestsAtZero; + PRCondVar* mPendingRequestAdded; + PRCondVar* mPendingRequestsAtZero; PRUint32 mStackSize;