summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Memory/IORsize/Memory_Growth.cpp
blob: 9dadc69653529c209d42b3d215324c99df2dd867 (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
//
// $Id$
//
#include "Memory_Growth.h"
#include "ace/Manual_Event.h"

ACE_RCSID (IORSize,
           Memory_Growth,
           "$Id$")

Memory_Growth::Memory_Growth (CORBA::ORB_ptr orb)
  : orb_ (CORBA::ORB::_duplicate (orb))
{
}

void
Memory_Growth::send_objref (const Test::PayLoad & /*p*/
                            )
{
  ACE_Manual_Event me;

  ACE_DEBUG ((LM_DEBUG,
              "(%P|%t) Going to wait .. \n"));

  me.wait ();

  ACE_DEBUG ((LM_DEBUG,
              "(%P|%t) Wokeup from wait .. \n"));
  return;
}

void
Memory_Growth::shutdown (void)
{
  this->orb_->shutdown (0);
}