diff options
| author | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-09-08 18:02:26 +0000 |
|---|---|---|
| committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-09-08 18:02:26 +0000 |
| commit | 4ac9f6f6b3a8774e5c2675b2a82736d6e5f54cc2 (patch) | |
| tree | f0cd0fbd299a943ef918e34bf93f2351b9536fa0 /ACE/examples/Threads | |
| parent | 346291e3d2643117a38010909463f95a0c1c767a (diff) | |
| download | ATCD-4ac9f6f6b3a8774e5c2675b2a82736d6e5f54cc2.tar.gz | |
* *.cpp:
Removed RCS_ID
Diffstat (limited to 'ACE/examples/Threads')
| -rw-r--r-- | ACE/examples/Threads/auto_event.cpp | 2 | ||||
| -rw-r--r-- | ACE/examples/Threads/cancel.cpp | 2 | ||||
| -rw-r--r-- | ACE/examples/Threads/future2.cpp | 1 | ||||
| -rw-r--r-- | ACE/examples/Threads/process_manager.cpp | 2 | ||||
| -rw-r--r-- | ACE/examples/Threads/task_five.cpp | 2 | ||||
| -rw-r--r-- | ACE/examples/Threads/task_four.cpp | 2 | ||||
| -rw-r--r-- | ACE/examples/Threads/thread_specific.cpp | 22 |
7 files changed, 10 insertions, 23 deletions
diff --git a/ACE/examples/Threads/auto_event.cpp b/ACE/examples/Threads/auto_event.cpp index 21ecbee830c..55f469614f9 100644 --- a/ACE/examples/Threads/auto_event.cpp +++ b/ACE/examples/Threads/auto_event.cpp @@ -14,8 +14,6 @@ #include "ace/Singleton.h" #include "ace/Thread_Manager.h" -ACE_RCSID(Threads, auto_event, "$Id$") - #if defined (ACE_HAS_THREADS) // Shared event between reader and writer. The ACE_Thread_Mutex is // necessary to make sure that only one ACE_Auto_Event is created. diff --git a/ACE/examples/Threads/cancel.cpp b/ACE/examples/Threads/cancel.cpp index f525ea7ea8e..c72005e588f 100644 --- a/ACE/examples/Threads/cancel.cpp +++ b/ACE/examples/Threads/cancel.cpp @@ -8,8 +8,6 @@ #include "ace/Service_Config.h" #include "ace/Thread_Manager.h" -ACE_RCSID(Threads, cancel, "$Id$") - #if defined (ACE_HAS_THREADS) static void * diff --git a/ACE/examples/Threads/future2.cpp b/ACE/examples/Threads/future2.cpp index b907e58ddc7..847dd820e1a 100644 --- a/ACE/examples/Threads/future2.cpp +++ b/ACE/examples/Threads/future2.cpp @@ -38,7 +38,6 @@ #include "ace/Auto_Ptr.h" #include "ace/Atomic_Op.h" -ACE_RCSID(Threads, future2, "$Id$") #if defined (ACE_HAS_THREADS) typedef ACE_Atomic_Op<ACE_Thread_Mutex, int> ATOMIC_INT; diff --git a/ACE/examples/Threads/process_manager.cpp b/ACE/examples/Threads/process_manager.cpp index b8c2455b469..72e355bbb26 100644 --- a/ACE/examples/Threads/process_manager.cpp +++ b/ACE/examples/Threads/process_manager.cpp @@ -33,8 +33,6 @@ #include "ace/Process_Manager.h" #include "ace/Get_Opt.h" -ACE_RCSID(Threads, process_manager, "$Id$") - class ExitHandler : public ACE_Event_Handler { public: diff --git a/ACE/examples/Threads/task_five.cpp b/ACE/examples/Threads/task_five.cpp index 66fcee550c4..d3d5a8c9085 100644 --- a/ACE/examples/Threads/task_five.cpp +++ b/ACE/examples/Threads/task_five.cpp @@ -23,8 +23,6 @@ #include "ace/Task.h" #include "ace/OS_NS_unistd.h" -ACE_RCSID(Threads, task_five, "$Id$") - static const int DEFAULT_TASKS = 100; static const int DEFAULT_ITERATIONS = 10; diff --git a/ACE/examples/Threads/task_four.cpp b/ACE/examples/Threads/task_four.cpp index 4188c57549b..c3ee8a1748b 100644 --- a/ACE/examples/Threads/task_four.cpp +++ b/ACE/examples/Threads/task_four.cpp @@ -36,8 +36,6 @@ #include "ace/Task.h" #include "ace/Service_Config.h" -ACE_RCSID(Threads, task_four, "$Id$") - #if defined (ACE_HAS_THREADS) #include "ace/Task.h" diff --git a/ACE/examples/Threads/thread_specific.cpp b/ACE/examples/Threads/thread_specific.cpp index 4d4b25d9583..ab5bdb05e3b 100644 --- a/ACE/examples/Threads/thread_specific.cpp +++ b/ACE/examples/Threads/thread_specific.cpp @@ -9,8 +9,6 @@ #include "ace/Truncate.h" #include "ace/Log_Msg.h" -ACE_RCSID(Threads, thread_specific, "$Id$") - #if defined (ACE_HAS_THREADS) #include "thread_specific.h" @@ -77,27 +75,27 @@ worker (void *c) "(%t) in worker 1, key = %d, ip = %x\n", key, ip)); - + { // tmp is workaround for gcc strict aliasing warning. void *tmp = reinterpret_cast <void *> (ip); - + if (ACE_Thread::setspecific (key, tmp) == -1) ACE_ERROR ((LM_ERROR, "(%t) %p\n", "ACE_Thread::setspecific")); - + if (ACE_Thread::getspecific (key, &tmp) == -1) ACE_ERROR ((LM_ERROR, "(%t) %p\n", "ACE_Thread::setspecific")); - + if (ACE_Thread::setspecific (key, (void *) 0) == -1) ACE_ERROR ((LM_ERROR, "(%t) %p\n", "ACE_Thread::setspecific")); } - + delete ip; if (ACE_Thread::keyfree (key) == -1) @@ -146,7 +144,7 @@ worker (void *c) "(%t) in worker 2, key = %d, ip = %x\n", key, ip)); - + { // Tmp is workaround for GCC strict aliasing warning. void *tmp (reinterpret_cast <void *> (ip)); @@ -155,20 +153,20 @@ worker (void *c) ACE_ERROR ((LM_ERROR, "(%t) %p\n", "ACE_Thread::setspecific")); - + if (ACE_Thread::getspecific (key, &tmp) == -1) ACE_ERROR ((LM_ERROR, "(%t) %p\n", "ACE_Thread::setspecific")); - + if (ACE_Thread::setspecific (key, (void *) 0) == -1) ACE_ERROR ((LM_ERROR, "(%t) %p\n", "ACE_Thread::setspecific")); } - + delete ip; - + if (ACE_Thread::keyfree (key) == -1) ACE_ERROR ((LM_ERROR, "(%t) %p\n", |
