diff options
Diffstat (limited to 'tests/Recursive_Mutex_Test.cpp')
-rw-r--r-- | tests/Recursive_Mutex_Test.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/tests/Recursive_Mutex_Test.cpp b/tests/Recursive_Mutex_Test.cpp index 999525d2b3e..07642ee03d4 100644 --- a/tests/Recursive_Mutex_Test.cpp +++ b/tests/Recursive_Mutex_Test.cpp @@ -36,8 +36,6 @@ USELIB("..\ace\aced.lib"); #if defined (CHORUS) // Chorus can't handle 100 iterations: // [amThrd.C:154]: Failed to allocate an AmActor - // NOTE: this was before we set the stack size, below. It - // might work with the default n_iterations now. static size_t n_iterations = 45; #else /* ! CHORUS */ static size_t n_iterations = 100; @@ -71,7 +69,7 @@ static void * worker (void *arg) { ACE_Recursive_Thread_Mutex *rm = - ACE_reinterpret_cast (ACE_Recursive_Thread_Mutex *, + ACE_reinterpret_cast (ACE_Recursive_Thread_Mutex *, arg); recursive_worker (0, rm); return 0; @@ -86,21 +84,9 @@ main (int, ASYS_TCHAR *[]) #if defined (ACE_HAS_THREADS) ACE_Recursive_Thread_Mutex rm; - - size_t stack_sizes [ACE_MAX_THREADS]; - for (unsigned int i = 0; i < ACE_MAX_THREADS; ++i) - stack_sizes[i] = 100000; - ACE_Thread_Manager::instance ()->spawn_n (n_threads, ACE_THR_FUNC (worker), - (void *) &rm, - THR_NEW_LWP | THR_JOINABLE, - ACE_DEFAULT_THREAD_PRIORITY, - -1, /* grp_id */ - 0, /* task base */ - 0, /* thread handles array */ - 0, /* stack array */ - stack_sizes); + (void *) &rm); ACE_Thread_Manager::instance ()->wait (); #else ACE_ERROR ((LM_ERROR, |