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:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user