diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-26 23:28:42 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-26 23:28:42 +0000 |
commit | 48415458129b6913bb792e0d5cf1c171b9588c98 (patch) | |
tree | b76d7985a9e2ae16511238935624b0a1db7502d8 | |
parent | 822ed500f8bc594cd3f5eb1a6fd44fb1f70a73b1 (diff) | |
download | ATCD-48415458129b6913bb792e0d5cf1c171b9588c98.tar.gz |
*** empty log message ***
-rw-r--r-- | tests/Thread_Pool_Reactor_Test.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/Thread_Pool_Reactor_Test.cpp b/tests/Thread_Pool_Reactor_Test.cpp index f2331734d4b..de19fea9f5f 100644 --- a/tests/Thread_Pool_Reactor_Test.cpp +++ b/tests/Thread_Pool_Reactor_Test.cpp @@ -66,19 +66,20 @@ static ASYS_TCHAR *rendezvous = ASYS_TEXT ("127.0.0.1:10010"); static size_t svr_thrno = ACE_MAX_THREADS; // Total number of server threads. -static size_t cli_thrno = -// Total number of client threads. #if defined (CHORUS) // Add platforms that can't handle too many // connection simultaneously here. - ACE_MAX_THREADS; +#define ACE_LOAD_FACTOR /2 #else - ACE_MAX_ITERATIONS; // Otherwise, we'll try to torture the platform. +#define ACE_LOAD_FACTOR #endif -static size_t cli_conn_no = ACE_MAX_ITERATIONS; +static size_t cli_thrno = ACE_MAX_ITERATIONS ACE_LOAD_FACTOR; +// Total number of client threads. + +static size_t cli_conn_no = ACE_MAX_ITERATIONS ACE_LOAD_FACTOR; // Total connection attemps of a client thread. -static size_t cli_req_no = ACE_MAX_THREADS; +static size_t cli_req_no = ACE_MAX_THREADS ACE_LOAD_FACTOR; // Total requests a client thread sends. static int req_delay = 50; |