diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-05-31 14:03:48 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-05-31 14:03:48 +0000 |
commit | e11ba0c50e3a348aaca372d17bf81054fe8ce96b (patch) | |
tree | 27942df0606edf4fc60ba44be083de3175a23c1c /tests | |
parent | 3174dc58564a5786be2d46ab469377711c266cf2 (diff) | |
download | ATCD-e11ba0c50e3a348aaca372d17bf81054fe8ce96b.tar.gz |
ChangeLogTag: Wed May 31 14:00:16 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Recursive_Mutex_Test.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/Recursive_Mutex_Test.cpp b/tests/Recursive_Mutex_Test.cpp index 26e6038747b..07b3357ced4 100644 --- a/tests/Recursive_Mutex_Test.cpp +++ b/tests/Recursive_Mutex_Test.cpp @@ -309,10 +309,12 @@ run_main (int argc, ACE_TCHAR *argv[]) { ACE_START_TEST (ACE_TEXT ("Recursive_Mutex_Test")); +#if defined (ACE_HAS_THREADS) if (argc > 1) - n_threads = ACE_OS::atoi (argv[1]); + { + n_threads = ACE_OS::atoi (argv[1]); + } -#if defined (ACE_HAS_THREADS) ACE_Recursive_Thread_Mutex rm; ACE_Thread_Manager::instance ()->spawn_n (n_threads, @@ -326,8 +328,9 @@ run_main (int argc, ACE_TCHAR *argv[]) ACE_Thread_Manager::instance ()->wait (); #else ACE_ERROR ((LM_ERROR, - ACE_TEXT ("ACE doesn't support recursive process mutexes on this platform\n"))); -#endif /* ACE_WIN32 */ + ACE_TEXT ("ACE doesn't support recursive process ") + ACE_TEXT ("mutexes on this platform\n"))); +#endif /* ACE_HAS_THREADS */ ACE_END_TEST; return 0; } |