diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2005-06-10 13:23:13 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2005-06-10 13:23:13 +0000 |
commit | ecf06a182144a4ebb8679b39be26be45d8db5339 (patch) | |
tree | 2451a077cd67b500c517e9966da71dead8bde46e /TAO/examples | |
parent | 7eb6e72de7e39961b204a990db6fc030409994a1 (diff) | |
download | ATCD-ecf06a182144a4ebb8679b39be26be45d8db5339.tar.gz |
ChangeLogTag: Fri Jun 10 08:21:47 2005 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/examples')
-rw-r--r-- | TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp | 22 | ||||
-rw-r--r-- | TAO/examples/RTScheduling/Thread_Task.cpp | 10 |
2 files changed, 21 insertions, 11 deletions
diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp index 3f672d81465..f692891e326 100644 --- a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp +++ b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp @@ -314,7 +314,7 @@ MIF_Scheduler::send_request (PortableInterceptor::ClientRequestInfo_ptr request_ RTScheduling::Current::IdType* guid = current_->id (ACE_ENV_SINGLE_ARG_PARAMETER); - CORBA::Octet *seq_buf = CORBA::OctetSeq::allocbuf (sizeof (guid_length)); + CORBA::Octet *seq_buf = CORBA::OctetSeq::allocbuf (guid_length); ACE_OS::memcpy (seq_buf, guid->get_buffer (), guid_length); @@ -329,10 +329,10 @@ MIF_Scheduler::send_request (PortableInterceptor::ClientRequestInfo_ptr request_ } int importance = sched_param_var->importance (); - CORBA::Octet *int_buf = CORBA::OctetSeq::allocbuf (sizeof (int)); + CORBA::Octet *int_buf = CORBA::OctetSeq::allocbuf (sizeof (importance)); ACE_OS::memcpy (int_buf, &importance, - sizeof (int)); + sizeof (importance)); int j = 0; for (;i < cxt_data_length;i++) @@ -431,10 +431,10 @@ MIF_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr reque int_buf [j] = serv_cxt->context_data [i++]; } - int importance; + int importance = 0; ACE_OS::memcpy (&importance, int_buf, - sizeof (int)); + sizeof (importance)); guid_out.ptr () = guid; sched_param_out.ptr () = DT_TEST::instance ()->scheduler ()->create_segment_scheduling_parameter (importance); @@ -559,10 +559,10 @@ MIF_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ACE_CHECK; int importance = sched_param_var->importance (); - CORBA::Octet *int_buf = CORBA::OctetSeq::allocbuf (sizeof (int)); + CORBA::Octet *int_buf = CORBA::OctetSeq::allocbuf (sizeof (importance)); ACE_OS::memcpy (int_buf, &importance, - sizeof (int)); + sizeof (importance)); RTScheduling::Current::IdType* guid = current_->id (ACE_ENV_SINGLE_ARG_PARAMETER); @@ -611,10 +611,10 @@ MIF_Scheduler::receive_exception (PortableInterceptor::ClientRequestInfo_ptr ACE_CHECK; int importance = sched_param_var->importance (); - CORBA::Octet *int_buf = CORBA::OctetSeq::allocbuf (sizeof (int)); + CORBA::Octet *int_buf = CORBA::OctetSeq::allocbuf (sizeof (importance)); ACE_OS::memcpy (int_buf, &importance, - sizeof (int)); + sizeof (importance)); RTScheduling::Current::IdType* guid = current_->id (ACE_ENV_SINGLE_ARG_PARAMETER); @@ -657,10 +657,10 @@ MIF_Scheduler::receive_other (PortableInterceptor::ClientRequestInfo_ptr ACE_CHECK; int importance = sched_param_var->importance (); - CORBA::Octet *int_buf = CORBA::OctetSeq::allocbuf (sizeof (int)); + CORBA::Octet *int_buf = CORBA::OctetSeq::allocbuf (sizeof (importance)); ACE_OS::memcpy (int_buf, &importance, - sizeof (int)); + sizeof (importance)); RTScheduling::Current::IdType* guid = current_->id (ACE_ENV_SINGLE_ARG_PARAMETER); diff --git a/TAO/examples/RTScheduling/Thread_Task.cpp b/TAO/examples/RTScheduling/Thread_Task.cpp index df16bea7ce7..e7c3997f565 100644 --- a/TAO/examples/RTScheduling/Thread_Task.cpp +++ b/TAO/examples/RTScheduling/Thread_Task.cpp @@ -7,6 +7,16 @@ #include "ace/High_Res_Timer.h" Thread_Task::Thread_Task (void) + : start_time_ (0), + load_ (0), + iter_ (0), + count_ (0), + importance_ (0), + dt_creator_ (0), + base_time_ (0), + dist_ (0), + job_name_ (0), + task_stats_ (0) { } |