summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-17 02:48:55 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-17 02:48:55 +0000
commitdecadde25253e35d920080d239cecc9711f52fe8 (patch)
treedd49c6170cccf2b80a25ac37a007b59d8b38de23 /tests
parentd5177450e1e126632a2a1c2f2f795827cf8caf86 (diff)
downloadATCD-decadde25253e35d920080d239cecc9711f52fe8.tar.gz
(worker): allow second group of TSS keys to be allocated, with TSS emulation
Diffstat (limited to 'tests')
-rw-r--r--tests/TSS_Test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/TSS_Test.cpp b/tests/TSS_Test.cpp
index 4ea05d0624f..bfb6e79a27a 100644
--- a/tests/TSS_Test.cpp
+++ b/tests/TSS_Test.cpp
@@ -45,6 +45,8 @@ static u_int errors = 0;
static const int ITERATIONS =
ACE_DEFAULT_THREAD_KEYS/8 < 2 ? 1 : ACE_DEFAULT_THREAD_KEYS/8;
#elif defined (__Lynx__)
+ // LynxOS only has 16 native TSS keys, and most of those don't seem
+ // to be available.
static const int ITERATIONS = 1;
#else
static const int ITERATIONS = 100;
@@ -184,7 +186,7 @@ worker (void *c)
++errors;
}
-#if !defined (__Lynx__) && !defined (ACE_HAS_TSS_EMULATION)
+#if !defined (__Lynx__) || defined (ACE_HAS_TSS_EMULATION)
key = ACE_OS::NULL_key;
if (ACE_Thread::keycreate (&key, cleanup) == -1)
@@ -212,7 +214,7 @@ worker (void *c)
ACE_ERROR ((LM_ERROR, ASYS_TEXT ("(%t) %p\n"),
ASYS_TEXT ("ACE_Thread::setspecific")));
-#if ! defined (ACE_HAS_PTHREADS_DRAFT4)
+#if !defined (ACE_HAS_PTHREADS_DRAFT4)
// See comment in cleanup () above.
delete ip;
#endif /* ! ACE_HAS_PTHREADS_DRAFT4 */
@@ -220,7 +222,7 @@ worker (void *c)
if (ACE_Thread::keyfree (key) == -1)
ACE_ERROR ((LM_ERROR, ASYS_TEXT ("(%t) %p\n"),
ASYS_TEXT ("ACE_Thread::keyfree")));
-#endif /* ! __Lynx__) && ! ACE_HAS_TSS_EMULATION */
+#endif /* ! __Lynx__ || ACE_HAS_TSS_EMULATION */
}
return 0;