Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Oneways_Invoking_Twoways / Sender_i.cpp
blob5049b6e8426488ab092ba125d287a8ef16817335
1 #include "Sender_i.h"
3 Sender_i::Sender_i (CORBA::ORB_ptr orb,
4 CORBA::ULong no)
5 : orb_ (CORBA::ORB::_duplicate (orb)),
6 number_ (no),
7 active_objects_ (0)
11 Sender_i::~Sender_i ()
15 void
16 Sender_i::active_objects (CORBA::Short no_threads
17 /* */ )
19 this->active_objects_ = no_threads;
23 void
24 Sender_i::send_ready_message (Test::Receiver_ptr receiver)
26 ACE_DEBUG ((LM_DEBUG,
27 "Received a call ...\n"));
29 ACE_DEBUG ((LM_DEBUG,
30 "Calling the Receiver ..\n"));
32 for (CORBA::ULong i = 0;
33 i < this->number_;
34 ++i)
36 receiver->receive_call ();
41 void
42 Sender_i::ping ()
46 void
47 Sender_i::shutdown ()
49 ACE_DEBUG ((LM_DEBUG,
50 "(%P|%t) About to invoke shutdown...\n"));
51 this->orb_->shutdown (false);