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:
Родитель
b8e5df3617
Коммит
9fe76c8e50
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче