diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-25 21:44:04 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-25 21:44:04 +0000 |
commit | 2fa1b9cb3c0cd8a4a1b9fc03d03764af6ddd7477 (patch) | |
tree | a6171ec90033bb7ccc80d44601a09c52c513b6da /tests/Reactors_Test.cpp | |
parent | 8a0f78acda236012a4e982887f18af2d23cec5e8 (diff) | |
download | ATCD-2fa1b9cb3c0cd8a4a1b9fc03d03764af6ddd7477.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests/Reactors_Test.cpp')
-rw-r--r-- | tests/Reactors_Test.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/Reactors_Test.cpp b/tests/Reactors_Test.cpp index a37f533d283..021777446b1 100644 --- a/tests/Reactors_Test.cpp +++ b/tests/Reactors_Test.cpp @@ -145,7 +145,7 @@ worker (void *args) { ACE_NEW_THREAD; - ACE_Thread_Control tc (ACE_Service_Config::thr_mgr ()); + ACE_Thread_Control tc (ACE_Thread_Manager::instance ()); ACE_Reactor *reactor = (ACE_Reactor *) args; @@ -193,24 +193,24 @@ main (int, char *[]) for (int i = 0; i < MAX_TASKS; i++) { - tt1[i].open (ACE_Service_Config::reactor ()); + tt1[i].open (ACE_Reactor::instance()); tt2[i].open (reactor); } - if (ACE_Service_Config::thr_mgr ()->spawn - (ACE_THR_FUNC (worker), (void *) ACE_Service_Config::reactor (), + if (ACE_Thread_Manager::instance ()->spawn + (ACE_THR_FUNC (worker), (void *) ACE_Reactor::instance(), THR_NEW_LWP | THR_DETACHED) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "spawn"), -1); - else if (ACE_Service_Config::thr_mgr ()->spawn + else if (ACE_Thread_Manager::instance ()->spawn (ACE_THR_FUNC (worker), (void *) reactor, THR_NEW_LWP | THR_DETACHED) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "spawn"), -1); - ACE_Service_Config::thr_mgr ()->wait (); + ACE_Thread_Manager::instance ()->wait (); reactor->close (); // Note that the destructor of ACE_Service_Config daemon will close - // down the ACE_Service_Config::reactor(). + // down the ACE_Reactor::instance(). #else ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n")); #endif /* ACE_HAS_THREADS */ |