summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2002-02-21 22:38:46 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2002-02-21 22:38:46 +0000
commit6f9c57067f523ddbb7b9049feddb89d2b35b2f65 (patch)
treedd9aaa2b04809fd56b4e3fd8a4b4b093ba7eb9ae /docs
parenteb542e74f27653aa574202054a92f09ed60362b8 (diff)
downloadATCD-6f9c57067f523ddbb7b9049feddb89d2b35b2f65.tar.gz
ChangeLogTag:Thu Feb 21 16:33:11 2002 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorials/007/client_acceptor.cpp4
-rw-r--r--docs/tutorials/007/page04.html4
-rw-r--r--docs/tutorials/007/page07.html16
-rw-r--r--docs/tutorials/007/page08.html6
-rw-r--r--docs/tutorials/007/thread_pool.cpp6
-rw-r--r--docs/tutorials/007/thread_pool.h17
6 files changed, 17 insertions, 36 deletions
diff --git a/docs/tutorials/007/client_acceptor.cpp b/docs/tutorials/007/client_acceptor.cpp
index 079ae8e6d6a..9e7e6f7348f 100644
--- a/docs/tutorials/007/client_acceptor.cpp
+++ b/docs/tutorials/007/client_acceptor.cpp
@@ -38,7 +38,7 @@ Client_Acceptor::open (const ACE_INET_Addr &addr,
int pool_size)
{
if (this->concurrency() == thread_pool_ && thread_pool_is_private ())
- thread_pool ()->open (pool_size);
+ thread_pool ()->start (pool_size);
return inherited::open (addr, reactor);
}
@@ -49,7 +49,7 @@ int
Client_Acceptor::close (void)
{
if (this->concurrency() == thread_pool_ && thread_pool_is_private ())
- thread_pool ()->close ();
+ thread_pool ()->stop ();
return inherited::close ();
}
diff --git a/docs/tutorials/007/page04.html b/docs/tutorials/007/page04.html
index 8f5a04a13d9..9e190725942 100644
--- a/docs/tutorials/007/page04.html
+++ b/docs/tutorials/007/page04.html
@@ -60,7 +60,7 @@ int
int pool_size)
{
if (this->concurrency() == thread_pool_ && thread_pool_is_private ())
- thread_pool ()->open (pool_size);
+ thread_pool ()->start (pool_size);
return <font color=#008888>inherited::open</font> (addr, reactor);
}
@@ -71,7 +71,7 @@ int
<font color=#008888>Client_Acceptor::close</font> (void)
{
if (this->concurrency() == thread_pool_ && thread_pool_is_private ())
- thread_pool ()->close ();
+ thread_pool ()->stop ();
return <font color=#008888>inherited::close</font> ();
}
diff --git a/docs/tutorials/007/page07.html b/docs/tutorials/007/page07.html
index 52f6ecfac70..ec322f1ee77 100644
--- a/docs/tutorials/007/page07.html
+++ b/docs/tutorials/007/page07.html
@@ -61,24 +61,14 @@ public:
<font color=red>// Basic constructor</font>
Thread_Pool (void);
- <font color=red>/* Opening the thread pool causes one or more threads to be
+ <font color=red>/* Starting the thread pool causes one or more threads to be
activated. When activated, they all execute the svc() method
declared below. */</font>
- int open (int pool_size = default_pool_size_);
-
- <font color=red>/* Some compilers will complain that our open() above attempts to
- override a virtual function in the baseclass. We have no
- intention of overriding that method but in order to keep the
- compiler quiet we have to add this method as a pass-thru to the
- baseclass method. */</font>
- virtual int open (void *void_data)
- {
- return <font color=#008888>inherited::open</font> (void_data);
- }
+ int start (int pool_size = default_pool_size_);
<font color=red>/*
*/</font>
- virtual int close (u_long flags = 0);
+ virtual int stop (void);
<font color=red>/* To use the thread pool, you have to put some unit of work into
it. Since we're dealing with event handlers (or at least their
diff --git a/docs/tutorials/007/page08.html b/docs/tutorials/007/page08.html
index 09db461fe37..672c3688c98 100644
--- a/docs/tutorials/007/page08.html
+++ b/docs/tutorials/007/page08.html
@@ -38,12 +38,12 @@ Remember back in <A HREF="../006/page01.html">Tutorial 6</A> when I
{
}
-<font color=red>/* Our open() method is a thin disguise around the ACE_Task&lt;>
+<font color=red>/* Our start() method is a thin disguise around the ACE_Task&lt;>
activate() method. By hiding activate() in this way, the users of
Thread_Pool don't have to worry about the thread configuration
flags. */</font>
int
-<font color=#008888>Thread_Pool::open</font> (int pool_size)
+<font color=#008888>Thread_Pool::start</font> (int pool_size)
{
return this->activate (THR_NEW_LWP|THR_DETACHED, pool_size);
}
@@ -52,7 +52,7 @@ int
take an easy approach and simply enqueue a secret message for each
thread we have active. */</font>
int
-<font color=#008888>Thread_Pool::close</font> (u_long flags)
+<font color=#008888>Thread_Pool::stop</font> (void)
{
ACE_UNUSED_ARG(flags);
diff --git a/docs/tutorials/007/thread_pool.cpp b/docs/tutorials/007/thread_pool.cpp
index 08302a6811f..1a62ec48c9c 100644
--- a/docs/tutorials/007/thread_pool.cpp
+++ b/docs/tutorials/007/thread_pool.cpp
@@ -12,12 +12,12 @@ Thread_Pool::Thread_Pool (void)
{
}
-/* Our open() method is a thin disguise around the ACE_Task<>
+/* Our start() method is a thin disguise around the ACE_Task<>
activate() method. By hiding activate() in this way, the users of
Thread_Pool don't have to worry about the thread configuration
flags. */
int
-Thread_Pool::open (int pool_size)
+Thread_Pool::start (int pool_size)
{
return this->activate (THR_NEW_LWP|THR_DETACHED, pool_size);
}
@@ -26,7 +26,7 @@ Thread_Pool::open (int pool_size)
take an easy approach and simply enqueue a secret message for each
thread we have active. */
int
-Thread_Pool::close (u_long flags)
+Thread_Pool::stop (void)
{
ACE_UNUSED_ARG(flags);
diff --git a/docs/tutorials/007/thread_pool.h b/docs/tutorials/007/thread_pool.h
index 9686b5a29da..134f2e89285 100644
--- a/docs/tutorials/007/thread_pool.h
+++ b/docs/tutorials/007/thread_pool.h
@@ -37,24 +37,15 @@ public:
// Basic constructor
Thread_Pool (void);
- /* Opening the thread pool causes one or more threads to be
+ /* Starting the thread pool causes one or more threads to be
activated. When activated, they all execute the svc() method
declared below. */
- int open (int pool_size = default_pool_size_);
-
- /* Some compilers will complain that our open() above attempts to
- override a virtual function in the baseclass. We have no
- intention of overriding that method but in order to keep the
- compiler quiet we have to add this method as a pass-thru to the
- baseclass method. */
- virtual int open (void *void_data)
- {
- return inherited::open (void_data);
- }
+ int start (int pool_size = default_pool_size_);
/*
+ Shut down the thread pool.
*/
- virtual int close (u_long flags = 0);
+ virtual int stop (void);
/* To use the thread pool, you have to put some unit of work into
it. Since we're dealing with event handlers (or at least their