summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp
diff options
context:
space:
mode:
authorsergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-13 00:10:08 +0000
committersergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-13 00:10:08 +0000
commit4785929f87b185e0ab8309f2301a2c4fcea3535d (patch)
treea2910905c04627e24f63d680afcaeea8fa7ea198 /TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp
parentb2609a73ad4c75046cdbf9d49e83e59fc7051f5f (diff)
downloadATCD-4785929f87b185e0ab8309f2301a2c4fcea3535d.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp')
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp
index 2a1a0fc2aea..130435a7855 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp
@@ -4,7 +4,8 @@
#include "cubit_i.h"
Cubit_i::Cubit_i (Task_State *ts)
- :ts_ (ts)
+ :ts_ (ts),
+ util_started_ (0)
{
}
@@ -17,8 +18,12 @@ Cubit_i::cube_octet (CORBA::Octet o,
CORBA::Environment &)
{
if (ts_->run_server_utilization_test_ == 1 &&
- ts_->utilization_task_started_ == 0)
- ts_->barrier_->wait ();
+ ts_->utilization_task_started_ == 0 &&
+ this->util_started_ == 0 )
+ {
+ this->util_started_ = 1;
+ ts_->barrier_->wait ();
+ }
return (CORBA::Octet) (o * o * o);
}
@@ -57,5 +62,7 @@ Cubit_i::noop (CORBA::Environment &)
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 ();
}