mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
Changing file worker thread count to have a minimum and maximum. Bug fix 27336.
r=warren,danm a=chofmann.
This commit is contained in:
parent
275c7cb63e
commit
5acecfb31e
@ -51,8 +51,9 @@ nsresult
|
||||
nsFileTransportService::Init()
|
||||
{
|
||||
nsresult rv;
|
||||
rv = NS_NewThreadPool(getter_AddRefs(mPool), NS_FILE_TRANSPORT_WORKER_COUNT,
|
||||
NS_FILE_TRANSPORT_WORKER_COUNT,
|
||||
rv = NS_NewThreadPool(getter_AddRefs(mPool),
|
||||
NS_FILE_TRANSPORT_WORKER_COUNT_MIN,
|
||||
NS_FILE_TRANSPORT_WORKER_COUNT_MAX,
|
||||
NS_FILE_TRANSPORT_WORKER_STACK_SIZE);
|
||||
#ifdef DEBUG
|
||||
static void* th = NS_CurrentThread(); // XXX experiment -- is this exported on mac?
|
||||
|
@ -27,7 +27,8 @@
|
||||
#include "nsIThreadPool.h"
|
||||
#include "nsISupportsArray.h"
|
||||
|
||||
#define NS_FILE_TRANSPORT_WORKER_COUNT 1//4
|
||||
#define NS_FILE_TRANSPORT_WORKER_COUNT_MIN 1
|
||||
#define NS_FILE_TRANSPORT_WORKER_COUNT_MAX 16
|
||||
|
||||
class nsFileTransportService : public nsIFileTransportService
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user