diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-31 13:34:03 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-31 13:34:03 +0000 |
commit | 789572423f62f35f143ceeca836d6ee4ed78f09a (patch) | |
tree | 6e97f75467e4897ccd2a86496f3842311e1351cd | |
parent | 64533fe0f4c2778dc0f56e904cc16ba812f54fe8 (diff) | |
download | ATCD-789572423f62f35f143ceeca836d6ee4ed78f09a.tar.gz |
ChangeLogTag: Thu Aug 31 08:32:11 2000 Albert Wijnja <Albert.Wijnja@meco.nl>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-02a | 6 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 6 | ||||
-rw-r--r-- | tests/TSS_Test.cpp | 5 |
4 files changed, 22 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 1adb4551d67..58e0868a551 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Aug 31 08:32:11 2000 Albert Wijnja <Albert.Wijnja@meco.nl> + + * tests/TSS_Test.cpp (ITERATIONS): replaced calculation of + ITERATIONS so that it is now dependent on ACE_MAX_THREADS. + [Bug 657] + Wed Aug 30 10:20:04 2000 Carlos O'Ryan <coryan@uci.edu> * bin/run_all_list.pm: diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index 1adb4551d67..58e0868a551 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Thu Aug 31 08:32:11 2000 Albert Wijnja <Albert.Wijnja@meco.nl> + + * tests/TSS_Test.cpp (ITERATIONS): replaced calculation of + ITERATIONS so that it is now dependent on ACE_MAX_THREADS. + [Bug 657] + Wed Aug 30 10:20:04 2000 Carlos O'Ryan <coryan@uci.edu> * bin/run_all_list.pm: diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 1adb4551d67..58e0868a551 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,9 @@ +Thu Aug 31 08:32:11 2000 Albert Wijnja <Albert.Wijnja@meco.nl> + + * tests/TSS_Test.cpp (ITERATIONS): replaced calculation of + ITERATIONS so that it is now dependent on ACE_MAX_THREADS. + [Bug 657] + Wed Aug 30 10:20:04 2000 Carlos O'Ryan <coryan@uci.edu> * bin/run_all_list.pm: diff --git a/tests/TSS_Test.cpp b/tests/TSS_Test.cpp index c9a35869d11..be4be43f1a7 100644 --- a/tests/TSS_Test.cpp +++ b/tests/TSS_Test.cpp @@ -38,7 +38,10 @@ static u_int errors = 0; // of keys quickly in the first thread, set the number of // ITERATIONS to be small as well. static const int ITERATIONS = - ACE_DEFAULT_THREAD_KEYS/8 < 2 ? 1 : ACE_DEFAULT_THREAD_KEYS/8; + (ACE_DEFAULT_THREAD_KEYS - ACE_MAX_THREADS) / (2 * ACE_MAX_THREADS) < 2 + ? 1 + : (ACE_DEFAULT_THREAD_KEYS - ACE_MAX_THREADS) / (2 * ACE_MAX_THREADS); + #elif defined (__Lynx__) // LynxOS only has 16 native TSS keys, and most of those don't seem // to be available. |