1 #ifndef ACE_ATOMIC_OP_T_CPP
2 #define ACE_ATOMIC_OP_T_CPP
4 #include "ace/Atomic_Op_T.h"
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)
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");
35 template <class ACE_LOCK
, class TYPE
>
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));
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
)
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 (
58 typename ACE_Atomic_Op_Ex
<ACE_LOCK
, TYPE
>::arg_type 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 */