diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-20 14:43:50 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-20 14:43:50 +0000 |
commit | 3eaa63bd1e6658413faf535dd2f71efc10f7aaef (patch) | |
tree | 914121bc0054f74c65b361cad9ffab299223567d /ACE/examples/Connection/blocking/SPIPE-acceptor.cpp | |
parent | 0944b607c618e28e0394428d7196f919cd9f721c (diff) | |
download | ATCD-3eaa63bd1e6658413faf535dd2f71efc10f7aaef.tar.gz |
ChangeLogTag: Tue Feb 20 14:43:00 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'ACE/examples/Connection/blocking/SPIPE-acceptor.cpp')
-rw-r--r-- | ACE/examples/Connection/blocking/SPIPE-acceptor.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp b/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp index 8885b0353cd..ba0001011b6 100644 --- a/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp +++ b/ACE/examples/Connection/blocking/SPIPE-acceptor.cpp @@ -188,16 +188,17 @@ IPC_Server::svc (void) // Run single-threaded. if (n_threads_ <= 1) run_reactor_event_loop (0); - else if (ACE_Thread_Manager::instance ()->spawn_n + else + { + if (ACE_Thread_Manager::instance ()->spawn_n (n_threads_, run_reactor_event_loop, 0, THR_NEW_LWP) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("spawn_n")), - 1); + ACE_ERROR_RETURN ((LM_ERROR, + ACE_TEXT ("%p\n"), + ACE_TEXT ("spawn_n")), + 1); ACE_Thread_Manager::instance ()->wait (); } |