blob: 98be1d5b52adb15d94372cb3d3d5d518116c93ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "ace/Time_Policy.h"
#if !defined(__ACE_INLINE__)
# include "ace/Time_Policy.inl"
#endif /* __ACE_INLINE__ */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Dynamic_Time_Policy_Base::~ACE_Dynamic_Time_Policy_Base ()
{
}
class NULL_Time_Policy : public ACE_Dynamic_Time_Policy_Base
{
protected:
ACE_Time_Value_T<ACE_Delegating_Time_Policy> gettimeofday () const override;
};
ACE_Time_Value_T<ACE_Delegating_Time_Policy> NULL_Time_Policy::gettimeofday () const
{
return ACE_Time_Value_T<ACE_Delegating_Time_Policy> (ACE_Time_Value::zero);
}
static NULL_Time_Policy null_policy_;
ACE_Delegating_Time_Policy::ACE_Delegating_Time_Policy (ACE_Dynamic_Time_Policy_Base const * delegate)
: delegate_ (delegate != 0 ? delegate : &null_policy_)
{
}
ACE_END_VERSIONED_NAMESPACE_DECL
|