summaryrefslogtreecommitdiff
path: root/tests/Bug_1476_Regression/Sender_i.cpp
blob: ae31215c43deda38e2f58a27e5a0a9b158e14001 (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
// $Id$

#include "Sender_i.h"

Sender_i::Sender_i (CORBA::ORB_ptr orb)
  : orb_ (CORBA::ORB::_duplicate (orb)),
    active_objects_ (0),
    number_received_ (0)
{
}

Sender_i::~Sender_i (void)
{
}

void
Sender_i::active_objects (CORBA::ULong no_threads)
{
  this->active_objects_ = no_threads;
}


void
Sender_i::send_ready_message (void)
{
  ACE_DEBUG ((LM_DEBUG,
              "Received a call ...\n"));

  number_received_++;
}

CORBA::ULong
Sender_i::get_number_received (void) const
{
  return number_received_;
}

CORBA::ULong
Sender_i::get_active_objects (void) const
{
  return active_objects_;
}