diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-28 16:13:37 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-28 16:13:37 +0000 |
commit | ab0a4b4c0226568515d72faadf7d83ff84788617 (patch) | |
tree | 2c07030049a651ed8d1b1567d96791a9b72519cc | |
parent | e73457232e4a5be1cd675837302c15b6ae01bf0a (diff) | |
download | ATCD-ab0a4b4c0226568515d72faadf7d83ff84788617.tar.gz |
ChangeLogTag: Fri Jul 28 11:12:39 2000 David L. Levine <levine@cs.wustl.edu>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-02a | 6 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 6 | ||||
-rw-r--r-- | tests/Thread_Mutex_Test.cpp | 9 |
4 files changed, 26 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index d0004a1404e..2f6c4505e2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Jul 28 11:12:39 2000 David L. Levine <levine@cs.wustl.edu> + + * tests/Thread_Mutex_Test.cpp (spawn): use 3 threads instead + of 4 (ACE_MAX_THREADS) on LynxOS, otherwise the test doesn't + seem to terminate. + Fri Jul 28 10:47:27 2000 David L. Levine <levine@cs.wustl.edu> * bin/ace-install: added this handy build+install script. diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index d0004a1404e..2f6c4505e2c 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Fri Jul 28 11:12:39 2000 David L. Levine <levine@cs.wustl.edu> + + * tests/Thread_Mutex_Test.cpp (spawn): use 3 threads instead + of 4 (ACE_MAX_THREADS) on LynxOS, otherwise the test doesn't + seem to terminate. + Fri Jul 28 10:47:27 2000 David L. Levine <levine@cs.wustl.edu> * bin/ace-install: added this handy build+install script. diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index d0004a1404e..2f6c4505e2c 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,9 @@ +Fri Jul 28 11:12:39 2000 David L. Levine <levine@cs.wustl.edu> + + * tests/Thread_Mutex_Test.cpp (spawn): use 3 threads instead + of 4 (ACE_MAX_THREADS) on LynxOS, otherwise the test doesn't + seem to terminate. + Fri Jul 28 10:47:27 2000 David L. Levine <levine@cs.wustl.edu> * bin/ace-install: added this handy build+install script. 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) |