Fix Win95 thread creation rotation NSPRPUB_RELEASE_3_1_BRANCH
authorlarryh%netscape.com
Thu, 08 Apr 1999 23:01:55 +0000
branchNSPRPUB_RELEASE_3_1_BRANCH
changeset 543 0d14ae9715be6018afb10050006c58c8b7768243
parent 542 3b900934e43a9bd23dbee1aaf3078a025f4b025c
child 561 c1ee8e208316af3a1e0e29f122c072ab0edb7ca5
push idunknown
push userunknown
push dateunknown
Fix Win95 thread creation rotation
pr/tests/socket.c
pr/tests/testfile.c
--- a/pr/tests/socket.c
+++ b/pr/tests/socket.c
@@ -257,17 +257,17 @@ PRThread* create_new_thread(PRThreadType
 							PRThreadPriority priority,
 							PRThreadScope scope,
 							PRThreadState state,
 							PRUint32 stackSize, PRInt32 index)
 {
 PRInt32 native_thread = 0;
 
 	PR_ASSERT(state == PR_UNJOINABLE_THREAD);
-#if (defined(_PR_PTHREADS) && !defined(_PR_DCETHREADS)) || defined(WINNT)
+#if (defined(_PR_PTHREADS) && !defined(_PR_DCETHREADS)) || defined(WINNT) || defined(WIN95)
 	switch(index %  4) {
 		case 0:
 			scope = (PR_LOCAL_THREAD);
 			break;
 		case 1:
 			scope = (PR_GLOBAL_THREAD);
 			break;
 		case 2:
--- a/pr/tests/testfile.c
+++ b/pr/tests/testfile.c
@@ -106,17 +106,17 @@ PRThread* create_new_thread(PRThreadType
 							PRThreadPriority priority,
 							PRThreadScope scope,
 							PRThreadState state,
 							PRUint32 stackSize, PRInt32 index)
 {
 PRInt32 native_thread = 0;
 
 	PR_ASSERT(state == PR_UNJOINABLE_THREAD);
-#if (defined(_PR_PTHREADS) && !defined(_PR_DCETHREADS)) || defined(WINNT)
+#if (defined(_PR_PTHREADS) && !defined(_PR_DCETHREADS)) || defined(WINNT) || defined(WIN95)
 	switch(index %  4) {
 		case 0:
 			scope = (PR_LOCAL_THREAD);
 			break;
 		case 1:
 			scope = (PR_GLOBAL_THREAD);
 			break;
 		case 2: