From e60a5d9d9b55bcb774031e36f9ea96a5a8a6045d Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 17 Sep 2010 07:52:52 +0000 Subject: Removed trailing whitespaces --- ACE/examples/APG/Logging/Change_Instance_Default.cpp | 2 +- ACE/examples/APG/Logging/Simple1.cpp | 2 +- ACE/examples/APG/Logging/Wrap_Macros_Alt.cpp | 2 +- ACE/examples/APG/Reactor/Timer_State_Data.cpp | 4 ++-- ACE/examples/APG/Streams/RecordingDeviceFactory.cpp | 2 +- ACE/examples/APG/ThreadManagement/Async_Cancel.cpp | 4 ++-- ACE/examples/APG/ThreadManagement/State.cpp | 6 +++--- ACE/examples/APG/ThreadPools/Task_ThreadPool.cpp | 2 +- ACE/examples/APG/Threads/Activate.cpp | 2 +- ACE/examples/APG/Timers/CB.cpp | 4 ++-- 10 files changed, 15 insertions(+), 15 deletions(-) (limited to 'ACE/examples/APG') 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) -- cgit v1.2.1