diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-01-03 10:22:59 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-01-03 10:22:59 +0000 |
commit | 3bfa446913298ce8016335c10ac56189ccfd7be0 (patch) | |
tree | 973745b3f05829db65a787ce5ac12da5f668bf1d /TAO/performance-tests | |
parent | 34b7e16177f7d2f96ee23df1797cd4d0efc4e5c2 (diff) | |
download | ATCD-3bfa446913298ce8016335c10ac56189ccfd7be0.tar.gz |
Diffstat (limited to 'TAO/performance-tests')
-rw-r--r-- | TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp | 9 | ||||
-rw-r--r-- | TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp index a73ceed6e10..7c32a067b6e 100644 --- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp +++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp @@ -336,6 +336,9 @@ Client_i::activate_high_client (void) ACE_DEBUG ((LM_DEBUG, "Creating 1 client with high priority of %d\n", this->high_priority_)); + + const char *t_name = this->task_name_; + if (this->high_priority_client_->activate ( GLOBALS::instance ()->thr_create_flags, 1, @@ -347,7 +350,7 @@ Client_i::activate_high_client (void) 0, 0, 0, - &this->task_name_) == -1) + &t_name) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p; priority is %d\n", "activate failed", @@ -406,6 +409,8 @@ Client_i::activate_low_client (void) this->low_priority_)); // The first thread starts at the lowest priority of all the low // priority clients. + const char *t_name = this->task_name_; + if (this->low_priority_client_[i - 1]->activate ( GLOBALS::instance ()->thr_create_flags, 1, @@ -417,7 +422,7 @@ Client_i::activate_low_client (void) 0, // void *stack[] = 0, 0, // size_t stack_size[] = 0, 0, - &this->task_name_) == -1) + &t_name) == -1) ACE_ERROR ((LM_ERROR, "%p; priority is %d\n", "activate failed", diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h b/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h index d218865ce54..1a55b02744c 100644 --- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h +++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.h @@ -153,7 +153,7 @@ private: // Set a task_name string starting with "@", so we are able to // accurately count the number of context switches. - const char* task_name_; + char* task_name_; ACE_Time_Value delta_; // elapsed time for the latency tests. |