summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-05-06 05:21:11 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-05-06 05:21:11 +0000
commit17377d7a8f6c8defd58e4184ea3910eea86365c3 (patch)
tree4fb91ca3779c4719a93000522743428c09980790 /examples
parent01742cd090753884bc7bbbaa820dfb0ce81a27ff (diff)
downloadATCD-17377d7a8f6c8defd58e4184ea3910eea86365c3.tar.gz
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
index 2d921bd102d..f79865a94cd 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
@@ -2,7 +2,7 @@
// This example tests the features of the ACE_SOCK_Acceptor and
// ACE_SOCK_Stream classes. If the platform supports threads it uses
-// a thread-per-request concurrency model.
+// a thread-per-connection concurrency model.
#include "ace/SOCK_Acceptor.h"
#include "ace/Thread_Manager.h"
@@ -106,6 +106,8 @@ run_event_loop (u_short port)
}
#if defined (ACE_HAS_THREADS)
+ // Spawn a new thread and run the new connection in that thread of
+ // control using the <server> function as the entry point.
if (ACE_Thread_Manager::instance ()->spawn ((ACE_THR_FUNC) server,
(void *) new_stream.get_handle (),
THR_DETACHED) == -1)