Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_2417_Regression / subscriber_impl.cpp
blob6d50931dbd6a8a48a53cc70892788ef143312028
1 #include "subscriber_impl.h"
2 #include "ace/OS_NS_stdio.h"
4 Subscriber_impl::Subscriber_impl(CORBA::ORB_ptr orb)
5 : orb_ (CORBA::ORB::_duplicate (orb))
6 , count(0)
10 Subscriber_impl::~Subscriber_impl()
14 void
15 Subscriber_impl::onData (::CORBA::Double)
17 ++count;
18 if (count > 100)
19 this->shutdown();
22 ::CORBA::Boolean
23 Subscriber_impl::isAlive ()
25 return true;
28 void Subscriber_impl::shutdown()
30 this->orb_->shutdown (0);