summaryrefslogtreecommitdiff
path: root/ACE/examples/APG
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2010-09-17 07:52:52 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2010-09-17 07:52:52 +0000
commite60a5d9d9b55bcb774031e36f9ea96a5a8a6045d (patch)
tree6e47dd26396eea92224f8ecd241b3c96f7531c42 /ACE/examples/APG
parent447b29bb6ee55ceb53aca914041c801baf05baa9 (diff)
downloadATCD-e60a5d9d9b55bcb774031e36f9ea96a5a8a6045d.tar.gz
Removed trailing whitespaces
Diffstat (limited to 'ACE/examples/APG')
-rw-r--r--ACE/examples/APG/Logging/Change_Instance_Default.cpp2
-rw-r--r--ACE/examples/APG/Logging/Simple1.cpp2
-rw-r--r--ACE/examples/APG/Logging/Wrap_Macros_Alt.cpp2
-rw-r--r--ACE/examples/APG/Reactor/Timer_State_Data.cpp4
-rw-r--r--ACE/examples/APG/Streams/RecordingDeviceFactory.cpp2
-rw-r--r--ACE/examples/APG/ThreadManagement/Async_Cancel.cpp4
-rw-r--r--ACE/examples/APG/ThreadManagement/State.cpp6
-rw-r--r--ACE/examples/APG/ThreadPools/Task_ThreadPool.cpp2
-rw-r--r--ACE/examples/APG/Threads/Activate.cpp2
-rw-r--r--ACE/examples/APG/Timers/CB.cpp4
10 files changed, 15 insertions, 15 deletions
diff --git a/ACE/examples/APG/Logging/Change_Instance_Default.cpp b/ACE/examples/APG/Logging/Change_Instance_Default.cpp
index e22af840259..03b273073df 100644
--- a/ACE/examples/APG/Logging/Change_Instance_Default.cpp
+++ b/ACE/examples/APG/Logging/Change_Instance_Default.cpp
@@ -11,7 +11,7 @@
#include "ace/Log_Msg.h"
#include "ace/Thread_Manager.h"
-ACE_THR_FUNC_RETURN worker (void *)
+ACE_THR_FUNC_RETURN worker (void *)
{
// do some work
return 0;
diff --git a/ACE/examples/APG/Logging/Simple1.cpp b/ACE/examples/APG/Logging/Simple1.cpp
index cf7a12e410b..91198db2992 100644
--- a/ACE/examples/APG/Logging/Simple1.cpp
+++ b/ACE/examples/APG/Logging/Simple1.cpp
@@ -7,7 +7,7 @@ void foo (void);
int ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_TRACE("main");
-
+
ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IHi Mom\n")));
foo();
ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IGoodnight\n")));
diff --git a/ACE/examples/APG/Logging/Wrap_Macros_Alt.cpp b/ACE/examples/APG/Logging/Wrap_Macros_Alt.cpp
index 306eefcd83a..b45f6ae662f 100644
--- a/ACE/examples/APG/Logging/Wrap_Macros_Alt.cpp
+++ b/ACE/examples/APG/Logging/Wrap_Macros_Alt.cpp
@@ -7,7 +7,7 @@ void foo (void);
int ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_TRACE ("main");
-
+
// Listing 1 code/ch03
ACE_DEBUG ((MY_DEBUG ACE_TEXT ("Hi Mom\n")));
diff --git a/ACE/examples/APG/Reactor/Timer_State_Data.cpp b/ACE/examples/APG/Reactor/Timer_State_Data.cpp
index 215381df394..22d5390c0e5 100644
--- a/ACE/examples/APG/Reactor/Timer_State_Data.cpp
+++ b/ACE/examples/APG/Reactor/Timer_State_Data.cpp
@@ -124,7 +124,7 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
// Listing 3 code/ch07
TemperatureSensor *sensorOne =
new TemperatureSensor ("Kitchen");
-
+
ACE_Reactor::instance ()->schedule_timer (temperatureMonitor,
sensorOne,
initialDelay,
@@ -135,7 +135,7 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
// Listing 4 code/ch07
TemperatureSensor *sensorTwo =
new TemperatureSensor ("Foyer");
-
+
ACE_Reactor::instance ()->schedule_timer (temperatureMonitor,
sensorTwo,
initialDelay,
diff --git a/ACE/examples/APG/Streams/RecordingDeviceFactory.cpp b/ACE/examples/APG/Streams/RecordingDeviceFactory.cpp
index f5585e1ec0a..beded2e5e3c 100644
--- a/ACE/examples/APG/Streams/RecordingDeviceFactory.cpp
+++ b/ACE/examples/APG/Streams/RecordingDeviceFactory.cpp
@@ -13,7 +13,7 @@ RecordingDevice *RecordingDeviceFactory::instantiate (int argc,
// Exclude 2
device = new TextListenerAcceptor ();
// Exclude 2
-
+
// Initialize the device with the remaining parameters.
if (device->init (argc, argv) < 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/ACE/examples/APG/ThreadManagement/Async_Cancel.cpp b/ACE/examples/APG/ThreadManagement/Async_Cancel.cpp
index 3aac199d793..2751f909e95 100644
--- a/ACE/examples/APG/ThreadManagement/Async_Cancel.cpp
+++ b/ACE/examples/APG/ThreadManagement/Async_Cancel.cpp
@@ -23,10 +23,10 @@ public:
// Put this thread in a compute loop.. no
// cancellation points are available.
}
-#if defined (__HP_aCC)
+#if defined (__HP_aCC)
// This is only to workaround a warning on HP-UX compiler.
return 0;
-#endif /* __HP_aCC */
+#endif /* __HP_aCC */
}
int set_cancel_mode (void)
diff --git a/ACE/examples/APG/ThreadManagement/State.cpp b/ACE/examples/APG/ThreadManagement/State.cpp
index d95433440c7..f4934a2085b 100644
--- a/ACE/examples/APG/ThreadManagement/State.cpp
+++ b/ACE/examples/APG/ThreadManagement/State.cpp
@@ -19,8 +19,8 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) Main Thread running\n")));
// Listing 1 code/ch13
HA_CommandHandler handler;
- int result = handler.activate (THR_NEW_LWP |
- THR_JOINABLE |
+ int result = handler.activate (THR_NEW_LWP |
+ THR_JOINABLE |
THR_SUSPENDED);
ACE_ASSERT (result == 0);
@@ -34,6 +34,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
handler.grp_id ()));
handler.resume ();
handler.wait ();
-// Listing 1
+// Listing 1
return 0;
}
diff --git a/ACE/examples/APG/ThreadPools/Task_ThreadPool.cpp b/ACE/examples/APG/ThreadPools/Task_ThreadPool.cpp
index 97c2539d3c5..06a054ee3fc 100644
--- a/ACE/examples/APG/ThreadPools/Task_ThreadPool.cpp
+++ b/ACE/examples/APG/ThreadPools/Task_ThreadPool.cpp
@@ -80,7 +80,7 @@ public:
ACE_Message_Block *mb = 0;
ACE_Time_Value tv ((long)MAX_TIMEOUT);
tv += ACE_OS::time (0);
-
+
// Get a message request.
if (this->getq (mb, &tv) < 0)
{
diff --git a/ACE/examples/APG/Threads/Activate.cpp b/ACE/examples/APG/Threads/Activate.cpp
index 2afa6316f91..658988a3bfa 100644
--- a/ACE/examples/APG/Threads/Activate.cpp
+++ b/ACE/examples/APG/Threads/Activate.cpp
@@ -24,7 +24,7 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
HA_CommandHandler handler;
int result = handler.activate ();
ACE_ASSERT (result == 0);
-
+
ACE_UNUSED_ARG (result);
handler.wait ();
diff --git a/ACE/examples/APG/Timers/CB.cpp b/ACE/examples/APG/Timers/CB.cpp
index 0a86ae7edeb..ba4a3f3a264 100644
--- a/ACE/examples/APG/Timers/CB.cpp
+++ b/ACE/examples/APG/Timers/CB.cpp
@@ -22,12 +22,12 @@ int CB::handle_timeout (const ACE_Time_Value &,
if (count_ == 5)
{
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Reseting interval for timer %d\n"),
timerID_));
// New interval is 10 ms.
- ACE_Time_Value interval (0L, 1000L);
+ ACE_Time_Value interval (0L, 1000L);
int status = Timer::instance ()->reset_interval
(timerID_, interval);
#if defined (ACE_NDEBUG)