diff options
Diffstat (limited to 'TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.cpp')
-rw-r--r-- | TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.cpp | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.cpp b/TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.cpp deleted file mode 100644 index 4ed26dce816..00000000000 --- a/TAO/tests/Cubit/TAO/MT_Cubit/cubit_i.cpp +++ /dev/null @@ -1,80 +0,0 @@ -// $Id$ - -#include "tao/corba.h" -#include "cubit_i.h" - -Cubit_i::Cubit_i (Task_State *ts) - :ts_ (ts), - util_started_ (0) -{ -} - -Cubit_i::~Cubit_i (void) -{ -} - -CORBA::Octet -Cubit_i::cube_octet (CORBA::Octet o, - CORBA::Environment &) -{ - if (ts_->run_server_utilization_test_ == 1 && - ts_->utilization_task_started_ == 0 && - this->util_started_ == 0 ) - { - this->util_started_ = 1; - ts_->barrier_->wait (); - } - -// if (ts_->run_server_utilization_test_ == 0) -// { -// ACE_DEBUG ((LM_DEBUG, -// "(%t) )))))))) " -// "test STARTED at %D\n")); - -// ts_->run_server_utilization_test_ = 1; -// this->util_started_ = 1; -// this->ts_->timer_.start (); -// } - - return (CORBA::Octet) (o * o * o); -} - -CORBA::Short -Cubit_i::cube_short (CORBA::Short s, - CORBA::Environment &) -{ - return (CORBA::Short) (s * s * s); -} - -CORBA::Long -Cubit_i::cube_long (CORBA::Long l, - CORBA::Environment &) -{ - return (CORBA::Long) (l * l * l); -} - -Cubit::Many -Cubit_i::cube_struct (const Cubit::Many &values, - CORBA::Environment &) -{ - Cubit::Many out_values; - out_values.o = values.o * values.o * values.o; - out_values.s = values.s * values.s * values.s; - out_values.l = values.l * values.l * values.l; - - return out_values; -} - -void -Cubit_i::noop (CORBA::Environment &) -{ - // does nothing. -} - -void Cubit_i::shutdown (CORBA::Environment &) -{ - ACE_DEBUG ((LM_DEBUG, - "(%t) Calling TAO_ORB_Core_instance ()->orb ()->shutdown ()\n")); - TAO_ORB_Core_instance ()->orb ()->shutdown (); - ts_->utilization_task_started_ = 0; -} |