Bug 21556: Making linux be thread-safe. Trying a little experiment here to see if mac is picking up the new export from xpcom -- easy to back out if it fails. Minor tweak. a=jar

git-svn-id: svn://10.0.0.236/trunk@62236 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
2000-03-05 10:29:05 +00:00
parent 326a2bb610
commit eb9fe3caa8

View File

@@ -43,6 +43,10 @@ nsFileTransportService::nsFileTransportService()
#define NS_FILE_TRANSPORT_WORKER_STACK_SIZE (64 * 1024) /* (8*1024) */
#ifdef DEBUG
extern "C" NS_EXPORT void* NS_CurrentThread(void);
#endif
nsresult
nsFileTransportService::Init()
{
@@ -50,7 +54,9 @@ nsFileTransportService::Init()
rv = NS_NewThreadPool(getter_AddRefs(mPool), NS_FILE_TRANSPORT_WORKER_COUNT,
NS_FILE_TRANSPORT_WORKER_COUNT,
NS_FILE_TRANSPORT_WORKER_STACK_SIZE);
#ifdef DEBUG
static void* th = NS_CurrentThread(); // XXX experiment -- is this exported on mac?
#endif
return rv;
}