GitHub Actions: Try MSVC builds with /std:c++17 and 20
[ACE_TAO.git] / ACE / ace / Monitor_Control_Action.cpp
blob63416dde1830af22507b1ddbbefeea75c2f650f9
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 (void)
14 : ACE_Refcountable_T<ACE_SYNCH_MUTEX> (1)
17 Control_Action::~Control_Action (void)
20 void
21 Control_Action::add_ref (void)
23 (void) this->increment ();
26 void
27 Control_Action::remove_ref (void)
29 const long new_count = this->decrement ();
31 if (new_count == 0)
33 delete this;
39 ACE_END_VERSIONED_NAMESPACE_DECL
41 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */