summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Bug_1495_Regression/test_i.cpp
blob: 60227c6d081943c3e6cfb4a21c9e061701c1f8d2 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// -*- C++ -*-
//
// $Id$

/**
 * @file test_i.cpp
 * @author Will Otte <wotte@dre.vanderbilt.edu>
 */

#include "test_i.h"
#include "ace/Thread.h"


Bug1495_i::Bug1495_i ()
{}

// Implementation skeleton constructor
Bug1495_i::Bug1495_i (CORBA::ORB_ptr orb)
        : orb_ (CORBA::ORB::_duplicate (orb))
{
}

// Implementation skeleton destructor
Bug1495_i::~Bug1495_i (void)
{
}

void
Bug1495_i::get_thread_id (
    CORBA::Long_out thread_id
  )
{
    thread_id = static_cast<CORBA::Long> ((size_t)ACE_Thread::self ());
}

void
Bug1495_i::shutdown (
  )
{
    ACE_DEBUG ((LM_INFO,
                "Shutting down orb %i\n",
                ACE_Thread::self()));

    this->_remove_ref ();

    this->orb_->shutdown (0);
}