summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/performance-tests/EC_Colocated_Latency/POA_Destroyer.cpp
blob: dd1547a0ce2c1cb2cb1d5b5e4528407da66e8df3 (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
/**
 * @file POA_Destroyer.cpp
 *
 * $Id$
 *
 * @author Carlos O'Ryan <coryan@uci.edu>
 */

#include "POA_Destroyer.h"

#if !defined(__ACE_INLINE__)
#include "POA_Destroyer.inl"
#endif /* __ACE_INLINE__ */

POA_Destroyer::~POA_Destroyer ()
{
  if (CORBA::is_nil (this->poa_.in ()))
    return;

  ACE_DECLARE_NEW_CORBA_ENV;
  ACE_TRY {
    this->poa_->destroy (1, 1
                         TAO_ENV_ARG_PARAMETER);
    ACE_TRY_CHECK;
  } ACE_CATCHANY {
    // @@ This event should be logged...
  } ACE_ENDTRY;
}