Merge pull request #2306 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / scale_clients / Test_i.cpp
blobf80d527fdee7652da45ad58f5035852937f93b48
1 /* -*- C++ -*- */
3 #include "Test_i.h"
4 #include "ace/OS_NS_unistd.h"
6 /* static */ bool Test_i::expected_requests_made_ = false;
8 Test_i::Test_i (CORBA::ORB_ptr orb, CORBA::Short num_requests_expected)
9 : orb_ (CORBA::ORB::_duplicate(orb))
10 , num_requests_expected_ (num_requests_expected)
11 , num_requests_made_ (0)
15 Test_i::~Test_i ()
17 if (this->num_requests_expected_ == this->num_requests_made_)
18 Test_i::expected_requests_made_ = true;
21 CORBA::Short
22 Test_i::get_num_requests (CORBA::Short delay_secs)
24 ACE_OS::sleep (delay_secs);
25 return ++this->num_requests_made_;
28 bool
29 Test_i::expected_requests_made ()
31 return Test_i::expected_requests_made_;
34 void
35 Test_i::shutdown ()
37 orb_->shutdown(0);