Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Atomic_Op_T.cpp
blobf0a53fa4778ed0cc6523d295db3ba6aee41eb141
1 #ifndef ACE_ATOMIC_OP_T_CPP
2 #define ACE_ATOMIC_OP_T_CPP
4 #include "ace/Atomic_Op_T.h"
6 #ifdef ACE_HAS_DUMP
7 # include "ace/Log_Category.h"
8 #endif /* ACE_HAS_DUMP */
10 #if defined (ACE_HAS_ALLOC_HOOKS)
11 # include "ace/Malloc_Base.h"
12 #endif /* ACE_HAS_ALLOC_HOOKS */
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #if !defined (__ACE_INLINE__)
19 #include "ace/Atomic_Op_T.inl"
20 #endif /* __ACE_INLINE__ */
22 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
24 ACE_ALLOC_HOOK_DEFINE_Tcc(ACE_Atomic_Op_Ex)
25 ACE_ALLOC_HOOK_DEFINE_Tcc(ACE_Atomic_Op)
27 // *************************************************
28 template <class ACE_LOCK, class TYPE> ACE_LOCK &
29 ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::mutex ()
31 // ACE_TRACE ("ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::mutex");
32 return this->mutex_;
35 template <class ACE_LOCK, class TYPE>
36 void
37 ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::dump () const
39 #if defined (ACE_HAS_DUMP)
40 // ACE_TRACE ("ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::dump");
41 ACELIB_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
42 this->mutex_.dump ();
43 ACELIB_DEBUG ((LM_DEBUG, ACE_END_DUMP));
44 #endif /* ACE_HAS_DUMP */
47 template <class ACE_LOCK, class TYPE>
48 ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::ACE_Atomic_Op_Ex (ACE_LOCK & mtx)
49 : mutex_ (mtx)
50 , value_ (0)
52 // ACE_TRACE ("ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::ACE_Atomic_Op_Ex");
55 template <class ACE_LOCK, class TYPE>
56 ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::ACE_Atomic_Op_Ex (
57 ACE_LOCK & mtx,
58 typename ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::arg_type c)
59 : mutex_ (mtx)
60 , value_ (c)
62 // ACE_TRACE ("ACE_Atomic_Op_Ex<ACE_LOCK, TYPE>::ACE_Atomic_Op_Ex");
65 // ****************************************************************
67 template <class ACE_LOCK, class TYPE>
68 ACE_Atomic_Op<ACE_LOCK, TYPE>::ACE_Atomic_Op ()
69 : impl_ (this->own_mutex_)
71 // ACE_TRACE ("ACE_Atomic_Op<ACE_LOCK, TYPE>::ACE_Atomic_Op");
74 template <class ACE_LOCK, class TYPE>
75 ACE_Atomic_Op<ACE_LOCK, TYPE>::ACE_Atomic_Op (
76 typename ACE_Atomic_Op<ACE_LOCK, TYPE>::arg_type c)
77 : impl_ (own_mutex_, c)
79 // ACE_TRACE ("ACE_Atomic_Op<ACE_LOCK, TYPE>::ACE_Atomic_Op");
82 ACE_END_VERSIONED_NAMESPACE_DECL
84 #endif /* ACE_ATOMIC_OP_T_CPP */