summaryrefslogtreecommitdiff
path: root/tests/Thread_Pool_Test.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-06-13 16:09:31 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-06-13 16:09:31 +0000
commit65f1be6842cce205b84f2786f715c9f66ebe5b93 (patch)
treed40f4e5116abf29a5b584b3e71daf7dcea4b2e4c /tests/Thread_Pool_Test.cpp
parenta4bb3db991853687be26c525a45ff73d2f51bd6c (diff)
downloadATCD-65f1be6842cce205b84f2786f715c9f66ebe5b93.tar.gz
ChangeLogTag:Wed Jun 13 11:08:26 2001 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'tests/Thread_Pool_Test.cpp')
-rw-r--r--tests/Thread_Pool_Test.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/Thread_Pool_Test.cpp b/tests/Thread_Pool_Test.cpp
index be0d1d0b56d..fc0318edf08 100644
--- a/tests/Thread_Pool_Test.cpp
+++ b/tests/Thread_Pool_Test.cpp
@@ -18,8 +18,8 @@
// queue is deactivated.
//
// = AUTHOR
-// Karlheinz Dorn <Karlheinz.Dorn@med.siemens.de>,
-// Douglas C. Schmidt <schmidt@cs.wustl.edu>, and
+// Karlheinz Dorn <Karlheinz.Dorn@med.siemens.de>,
+// Douglas C. Schmidt <schmidt@cs.wustl.edu>, and
// Prashant Jain <pjain@cs.wustl.edu>
//
// ============================================================================
@@ -128,7 +128,7 @@ Thread_Pool::svc (void)
if (result == -1 && errno == ESHUTDOWN)
{
// The queue has been deactivated, so let's bail out.
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) in iteration %d, queue len = %d, ")
ACE_TEXT ("queue deactivated, exiting\n"),
count,
@@ -189,7 +189,7 @@ Thread_Pool::open (void *)
// consumed by the threads in the thread pool, and demonstate how to
// shutdown using the <ACE_Message_Queue::deactivate> method.
-int
+int
Thread_Pool::test_queue_deactivation_shutdown (void)
{
if (this->open () == -1)
@@ -218,7 +218,7 @@ Thread_Pool::test_queue_deactivation_shutdown (void)
if (manual)
{
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) enter a new message for ")
ACE_TEXT ("the task pool...")));
n = ACE_OS::read (ACE_STDIN,
@@ -229,8 +229,8 @@ Thread_Pool::test_queue_deactivation_shutdown (void)
{
static size_t count = 0;
- ACE_OS::sprintf (mb->wr_ptr (),
- ACE_SIZE_T_FORMAT_SPECIFIER,
+ ACE_OS::sprintf (ACE_reinterpret_cast (ACE_TCHAR *, mb->wr_ptr ()),
+ ACE_SIZE_T_FORMAT_SPECIFIER,
count);
n = ACE_OS::strlen (mb->rd_ptr ());
@@ -279,7 +279,7 @@ Thread_Pool::test_queue_deactivation_shutdown (void)
// pool, and demonstrate how to shutdown by enqueueing "empty"
// messages into the queue.
-int
+int
Thread_Pool::test_empty_message_shutdown (void)
{
if (this->open () == -1)
@@ -308,7 +308,7 @@ Thread_Pool::test_empty_message_shutdown (void)
if (manual)
{
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) enter a new message for ")
ACE_TEXT ("the task pool...")));
n = ACE_OS::read (ACE_STDIN,
@@ -319,7 +319,7 @@ Thread_Pool::test_empty_message_shutdown (void)
{
static size_t count = 0;
- ACE_OS::sprintf (mb->wr_ptr (),
+ ACE_OS::sprintf (ACE_reinterpret_cast (ACE_TCHAR *, mb->wr_ptr ()),
ACE_SIZE_T_FORMAT_SPECIFIER,
count);
n = ACE_OS::strlen (mb->rd_ptr ());