summaryrefslogtreecommitdiff
path: root/tests/TSS_Test.cpp
diff options
context:
space:
mode:
authorolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-12-20 14:57:10 +0000
committerolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-12-20 14:57:10 +0000
commitd0c7d132763fc597a919fd0ef77c24edef0c71b4 (patch)
treef88a1f444c8700305ea282fd55c7f9e983ccc866 /tests/TSS_Test.cpp
parent02a7022b39920824df3e9862866782a3b56739fa (diff)
downloadATCD-d0c7d132763fc597a919fd0ef77c24edef0c71b4.tar.gz
ChangeLogTag: Mon Dec 20 16:47:08 2004 Olli Savia <ops@iki.fi>
Diffstat (limited to 'tests/TSS_Test.cpp')
-rw-r--r--tests/TSS_Test.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/TSS_Test.cpp b/tests/TSS_Test.cpp
index 95a7e63e5a6..1be244711a8 100644
--- a/tests/TSS_Test.cpp
+++ b/tests/TSS_Test.cpp
@@ -43,11 +43,6 @@ static u_int errors = 0;
(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.
- static const int ITERATIONS = 1;
#else
// POSIX requires at least _POSIX_THREAD_KEYS_MAX (128) keys. 25
// iterations with 4 worker threads should be sufficient to check
@@ -205,7 +200,7 @@ worker (void *c)
}
#endif /* !defined (ACE_HAS_BROKEN_EXPLICIT_TYPECAST_OPERATOR_INVOCATION) */
-#if !defined (__Lynx__) || defined (ACE_HAS_TSS_EMULATION)
+#if defined (ACE_HAS_TSS_EMULATION)
key = ACE_OS::NULL_key;
if (ACE_Thread::keycreate (&key, cleanup) == -1)
@@ -248,7 +243,7 @@ worker (void *c)
ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%t) %p\n"),
ACE_TEXT ("ACE_Thread::keyfree")));
# endif /* !(PTHREADS_DRAFT4 or 6) || defined (ACE_HAS_TSS_EMULATION) */
-#endif /* ! __Lynx__ || ACE_HAS_TSS_EMULATION */
+#endif /* ACE_HAS_TSS_EMULATION */
}
return 0;
}