Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Monitor_Control_Action.cpp
blob995c365dbf221beb2f30868584d8fb2d11133774
1 #include "ace/Monitor_Control_Action.h"
3 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
5 #include "ace/Guard_T.h"
7 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
9 namespace ACE
11 namespace Monitor_Control
13 Control_Action::Control_Action ()
14 : ACE_Refcountable_T<ACE_SYNCH_MUTEX> (1)
17 void
18 Control_Action::add_ref ()
20 (void) this->increment ();
23 void
24 Control_Action::remove_ref ()
26 const long new_count = this->decrement ();
28 if (new_count == 0)
30 delete this;
36 ACE_END_VERSIONED_NAMESPACE_DECL
38 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */