Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / ORB_Time_Policy.cpp
blob242197c63621e7222a4a2300e7d62210f62e5470
1 #include "tao/ORB_Time_Policy.h"
3 #if !defined (__ACE_INLINE__)
4 # include "tao/ORB_Time_Policy.inl"
5 #endif /* ! __ACE_INLINE__ */
7 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
9 namespace TAO
11 ACE_Time_Policy_T<ACE_Default_Time_Policy> ORB_Time_Policy::default_policy_;
12 ACE_Dynamic_Time_Policy_Base const * ORB_Time_Policy::active_policy_ = &ORB_Time_Policy::default_policy_;
14 void ORB_Time_Policy::set_time_policy (ACE_Dynamic_Time_Policy_Base const * pol)
16 if (pol != nullptr )
18 active_policy_ = pol;
22 void ORB_Time_Policy::reset_time_policy ()
24 active_policy_ = &default_policy_;
28 TAO_END_VERSIONED_NAMESPACE_DECL