Changing file worker thread count to have a minimum and maximum. Bug fix 27336.

r=warren,danm a=chofmann.
This commit is contained in:
dougt%netscape.com 2000-03-05 20:57:51 +00:00
parent 275c7cb63e
commit 5acecfb31e
2 changed files with 5 additions and 3 deletions

View File

@ -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?

View File

@ -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
{