1 #include "ace/Time_Policy.h"
3 #if !defined(__ACE_INLINE__)
4 # include "ace/Time_Policy.inl"
5 #endif /* __ACE_INLINE__ */
7 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
9 ACE_Dynamic_Time_Policy_Base::~ACE_Dynamic_Time_Policy_Base ()
14 class NULL_Time_Policy
: public ACE_Dynamic_Time_Policy_Base
17 virtual ACE_Time_Value_T
<ACE_Delegating_Time_Policy
> gettimeofday () const;
20 ACE_Time_Value_T
<ACE_Delegating_Time_Policy
> NULL_Time_Policy::gettimeofday () const
22 return ACE_Time_Value_T
<ACE_Delegating_Time_Policy
> (ACE_Time_Value::zero
);
25 static NULL_Time_Policy null_policy_
;
27 ACE_Delegating_Time_Policy::ACE_Delegating_Time_Policy (ACE_Dynamic_Time_Policy_Base
const * delegate
)
28 : delegate_ (delegate
!= 0 ? delegate
: &null_policy_
)
32 ACE_END_VERSIONED_NAMESPACE_DECL