Fixed thread pool thread allocation to be more lazy (still doesn't release unused threads though). (Code adapted from dougt.)

git-svn-id: svn://10.0.0.236/trunk@66658 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
2000-04-21 05:12:57 +00:00
parent 13518b89f8
commit e42631defd
4 changed files with 195 additions and 90 deletions

View File

@@ -50,9 +50,11 @@ interface nsIThreadPool : nsISupports
void DispatchRequest(in nsIRunnable runnable);
void ProcessPendingRequests();
void Shutdown();
void Init(in unsigned long aStackSize,
in PRThreadPriority aPriority,
in PRThreadScope aScope);
void Init(in unsigned long aPoolMinThreadCount,
in unsigned long aPoolMaxThreadCount,
in unsigned long aThreadStackSize,
in PRThreadPriority aThreadPriority,
in PRThreadScope aThreadScope);
};
%{C++