summaryrefslogtreecommitdiff
path: root/tests/Thread_Mutex_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-28 16:13:37 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-28 16:13:37 +0000
commitab0a4b4c0226568515d72faadf7d83ff84788617 (patch)
tree2c07030049a651ed8d1b1567d96791a9b72519cc /tests/Thread_Mutex_Test.cpp
parente73457232e4a5be1cd675837302c15b6ae01bf0a (diff)
downloadATCD-ab0a4b4c0226568515d72faadf7d83ff84788617.tar.gz
ChangeLogTag: Fri Jul 28 11:12:39 2000 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'tests/Thread_Mutex_Test.cpp')
-rw-r--r--tests/Thread_Mutex_Test.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/Thread_Mutex_Test.cpp b/tests/Thread_Mutex_Test.cpp
index e847f34fae9..ebeea62a73e 100644
--- a/tests/Thread_Mutex_Test.cpp
+++ b/tests/Thread_Mutex_Test.cpp
@@ -64,7 +64,14 @@ spawn (void)
#if defined (ACE_HAS_THREADS)
ACE_Thread_Mutex mutex;
- if (ACE_Thread_Manager::instance ()->spawn_n (ACE_MAX_THREADS,
+ const u_int n_threads =
+#if defined (__Lynx__)
+ 3; /* It just doesn't work with 4 threads. */
+#else /* ! __Lynx__ */
+ ACE_MAX_THREADS;
+#endif /* ! __Lynx_- */
+
+ if (ACE_Thread_Manager::instance ()->spawn_n (n_threads,
ACE_THR_FUNC (test),
(void *) &mutex,
THR_NEW_LWP | THR_DETACHED) == -1)