summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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)