summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.cpp
blob: 333b49c3ff66f920e3189c68a7030162a462bade (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
// $Id$

#ifndef METRICS_UPCALL_MONITOR_T_CPP
#define METRICS_UPCALL_MONITOR_T_CPP

#include "orbsvcs/Metrics/Metrics_UpcallMonitor_T.h"

#if !defined (__ACE_INLINE__)
#include "orbsvcs/Metrics/Metrics_UpcallMonitor_T.i"
#endif /* __ACE_INLINE__ */

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

// Virtual destructor: destroy actual consumer if we own it.
template <class ACE_LOCK, class ALLOCATOR>
TAO_Metrics_UpcallMonitorAdapter<ACE_LOCK, ALLOCATOR>::
~TAO_Metrics_UpcallMonitorAdapter ()
{
  if (adapter_owns_consumer_)
    {
      delete (& consumer_);
    }
}

TAO_END_VERSIONED_NAMESPACE_DECL

#endif /* METRICS_UPCALL_MONITOR_T_CPP */