diff options
author | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-19 22:26:49 +0000 |
---|---|---|
committer | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-19 22:26:49 +0000 |
commit | 3dfaced0e75a3336ac179135110ab6fb67b615e9 (patch) | |
tree | ac749d1f3a39460a1ba425584445fcfe4db67536 | |
parent | a7dafa4176c857337d21d43672147227ff5cd757 (diff) | |
download | ATCD-3dfaced0e75a3336ac179135110ab6fb67b615e9.tar.gz |
changed initialization value of RT_Info period to 1 to avoid divide by zero errors in adaptive scheduling use cases
-rw-r--r-- | TAO/ChangeLog-99c | 8 | ||||
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/TAO/ChangeLog-99c b/TAO/ChangeLog-99c index 5a75b29eda9..1a4a7c33275 100644 --- a/TAO/ChangeLog-99c +++ b/TAO/ChangeLog-99c @@ -1,3 +1,11 @@ +Thu Aug 19 17:25:00 1999 Chris Gill <cdgill@cs.wustl.edu> + + * orbsvcs\orbsvcs\Sched\Reconfig_Scheduler_T.cpp: changed default + value to which RT_Info period is initialized to 1 instead of 0, + to avoid divide-by-zero errors when creates are used to lay out + all operations and utilization is assessed by an adaptive + algorithm before all operations are valued via the set method. + Thu Aug 19 16:34:04 1999 Balachandran Natarajan <bala@cs.wustl.edu> * tao/BoundsC.i: diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp index 7751bbb490a..ccfbd4efca8 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp @@ -1416,7 +1416,7 @@ TAO_Reconfig_Scheduler<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::init_rt_info (RtecSch rt_info.worst_case_execution_time = 0; rt_info.typical_execution_time = 0; rt_info.cached_execution_time = 0; - rt_info.period = 0; + rt_info.period = 1; rt_info.importance = RtecScheduler::VERY_LOW_IMPORTANCE; rt_info.quantum = 0; rt_info.threads = 0; |