mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bugzilla bug 217968: renamed the STACKSIZE macro to THREAD_STACKSIZE to
avoid a conflict with a same-named macro defined in <ppc/param.h> on Mac OS X. Thanks to timeless@bemail.org for reporting the bug. Modified Files: server_test.c servr_kk.c servr_ku.c servr_uk.c servr_uu.c
This commit is contained in:
parent
716ade54c5
commit
383f28b04e
@ -61,7 +61,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#define PORT 15004
|
||||
#define STACKSIZE 0
|
||||
#define THREAD_STACKSIZE 0
|
||||
|
||||
#define PASS 0
|
||||
#define FAIL 1
|
||||
@ -225,7 +225,7 @@ WorkerThreadFunc(void *_listenSock)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread)
|
||||
if (debug_mode) printf("Error creating client thread %d\n", workerThreads);
|
||||
@ -314,7 +314,7 @@ ServerSetup(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread) {
|
||||
if (debug_mode) printf("error creating working thread\n");
|
||||
@ -469,7 +469,7 @@ RunClients(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ClientScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!clientThread) {
|
||||
if (debug_mode) printf("\terror creating client thread %d\n", index);
|
||||
@ -500,7 +500,7 @@ void do_work()
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_JOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
if (!ServerThread) {
|
||||
if (debug_mode) printf("error creating main server thread\n");
|
||||
return;
|
||||
|
@ -63,7 +63,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#define PORT 15004
|
||||
#define STACKSIZE 0
|
||||
#define THREAD_STACKSIZE 0
|
||||
|
||||
static int _iterations = 1000;
|
||||
static int _clients = 1;
|
||||
@ -191,7 +191,7 @@ WorkerThreadFunc(void *_listenSock)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread)
|
||||
if (debug_mode) printf("Error creating client thread %d\n", workerThreads);
|
||||
@ -291,7 +291,7 @@ ServerSetup(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread) {
|
||||
if (debug_mode) printf("error creating working thread\n");
|
||||
@ -446,7 +446,7 @@ RunClients(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ClientScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!clientThread) {
|
||||
if (debug_mode) printf("\terror creating client thread %d\n", index);
|
||||
@ -477,7 +477,7 @@ void do_work()
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_JOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
if (!ServerThread) {
|
||||
if (debug_mode) printf("error creating main server thread\n");
|
||||
return;
|
||||
|
@ -63,7 +63,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#define PORT 15004
|
||||
#define STACKSIZE 0
|
||||
#define THREAD_STACKSIZE 0
|
||||
|
||||
static int _iterations = 1000;
|
||||
static int _clients = 1;
|
||||
@ -192,7 +192,7 @@ WorkerThreadFunc(void *_listenSock)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread)
|
||||
if (debug_mode) printf("Error creating client thread %d\n", workerThreads);
|
||||
@ -292,7 +292,7 @@ ServerSetup(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread) {
|
||||
if (debug_mode) printf("error creating working thread\n");
|
||||
@ -447,7 +447,7 @@ RunClients(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ClientScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!clientThread) {
|
||||
if (debug_mode) printf("\terror creating client thread %d\n", index);
|
||||
@ -478,7 +478,7 @@ void do_work()
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_JOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
if (!ServerThread) {
|
||||
if (debug_mode) printf("error creating main server thread\n");
|
||||
return;
|
||||
|
@ -63,7 +63,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#define PORT 15004
|
||||
#define STACKSIZE 0
|
||||
#define THREAD_STACKSIZE 0
|
||||
|
||||
static int _iterations = 1000;
|
||||
static int _clients = 1;
|
||||
@ -194,7 +194,7 @@ WorkerThreadFunc(void *_listenSock)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread)
|
||||
if (debug_mode) printf("Error creating client thread %d\n", workerThreads);
|
||||
@ -294,7 +294,7 @@ ServerSetup(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread) {
|
||||
if (debug_mode) printf("error creating working thread\n");
|
||||
@ -449,7 +449,7 @@ RunClients(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ClientScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!clientThread) {
|
||||
if (debug_mode) printf("\terror creating client thread %d\n", index);
|
||||
@ -480,7 +480,7 @@ void do_work()
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_JOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
if (!ServerThread) {
|
||||
if (debug_mode) printf("error creating main server thread\n");
|
||||
return;
|
||||
|
@ -63,7 +63,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#define PORT 15004
|
||||
#define STACKSIZE 0
|
||||
#define THREAD_STACKSIZE 0
|
||||
|
||||
static int _iterations = 1000;
|
||||
static int _clients = 1;
|
||||
@ -192,7 +192,7 @@ WorkerThreadFunc(void *_listenSock)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread)
|
||||
if (debug_mode) printf("Error creating client thread %d\n", workerThreads);
|
||||
@ -292,7 +292,7 @@ ServerSetup(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!WorkerThread) {
|
||||
if (debug_mode) printf("error creating working thread\n");
|
||||
@ -447,7 +447,7 @@ RunClients(void)
|
||||
PR_PRIORITY_NORMAL,
|
||||
ClientScope,
|
||||
PR_UNJOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
|
||||
if (!clientThread) {
|
||||
if (debug_mode) printf("\terror creating client thread %d\n", index);
|
||||
@ -478,7 +478,7 @@ void do_work()
|
||||
PR_PRIORITY_NORMAL,
|
||||
ServerScope,
|
||||
PR_JOINABLE_THREAD,
|
||||
STACKSIZE);
|
||||
THREAD_STACKSIZE);
|
||||
if (!ServerThread) {
|
||||
if (debug_mode) printf("error creating main server thread\n");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user