summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-19 15:44:44 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-19 15:44:44 +0000
commit1f98ec9539142eb4de140d13095ac1bd6d81a637 (patch)
tree4124d9930fdaea70f9c90db30b65250d257750b7 /tests
parent9c3a74e1caa95754d079686f49d1fe9cef0ae743 (diff)
downloadATCD-1f98ec9539142eb4de140d13095ac1bd6d81a637.tar.gz
Can't use ACE_Thread::* anymore
Diffstat (limited to 'tests')
-rw-r--r--tests/UPIPE_SAP_Test.cpp30
1 files changed, 10 insertions, 20 deletions
diff --git a/tests/UPIPE_SAP_Test.cpp b/tests/UPIPE_SAP_Test.cpp
index 936086c28f8..ad4430b15ea 100644
--- a/tests/UPIPE_SAP_Test.cpp
+++ b/tests/UPIPE_SAP_Test.cpp
@@ -151,31 +151,21 @@ main (int, char *[])
ACE_UPIPE_Acceptor acc (addr);
// Spawn a acceptor thread.
- if (ACE_Thread::spawn (ACE_THR_FUNC (acceptor),
- (void *) &acc,
- THR_NEW_LWP,
- 0,
- &thr_handle_acceptor) == -1)
+ if (ACE_Thread_Manager::instance ()->spawn (ACE_THR_FUNC (acceptor),
+ (void *) &acc,
+ THR_NEW_LWP,
+ 0) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "spawn"), 1);
// Spawn a connector thread.
- if (ACE_Thread::spawn (ACE_THR_FUNC (connector),
- (void *) 0,
- THR_NEW_LWP,
- 0,
- &thr_handle_connector) == -1)
+ if (ACE_Thread_Manager::instance ()->spawn (ACE_THR_FUNC (connector),
+ (void *) 0,
+ THR_NEW_LWP,
+ 0) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "spawn"), 1);
-
- // Wait for both the acceptor and connector threads to exit.
- if (ACE_Thread::join (thr_handle_connector) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "join"), -1);
- else
- ACE_DEBUG ((LM_DEBUG, "(%t) joined with connector thread\n"));
- if (ACE_Thread::join (thr_handle_acceptor) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "join"), -1);
- else
- ACE_DEBUG ((LM_DEBUG, "(%t) joined with acceptor thread\n"));
+ ACE_Thread_Manager::instance ()->wait ();
+ ACE_DEBUG ((LM_DEBUG, "(%t) joined with acceptor thread\n"));
// Close the acceptor
acc.close ();