diff options
Diffstat (limited to 'TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp')
-rw-r--r-- | TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp index 6c02c305435..bab97a4c297 100644 --- a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp +++ b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp @@ -42,11 +42,10 @@ MIF_DT_Creator::yield (int suspend_time, { ACE_TRY_NEW_ENV { - ACE_Time_Value const sus_time_value (suspend_time); ACE_Time_Value now (ACE_OS::gettimeofday ()); - while (((now - *base_time_) < sus_time_value) || (suspend_time == 1)) + while (((now - *base_time_) < suspend_time) || (suspend_time == 1)) { - + ACE_OS::sleep (1); CORBA::Policy_var sched_param; sched_param = CORBA::Policy::_duplicate (this->sched_param (100)); |