@@ -104,7 +104,7 @@ void CSheduler::internal_Registration()
104104
105105void CSheduler::internal_Register (ISheduled* O, BOOL RT)
106106{
107- VERIFY (!O->shedule .b_locked );
107+ VERIFY (!O->GetSchedulerData () .b_locked );
108108 if (RT)
109109 {
110110 // Fill item structure
@@ -113,7 +113,7 @@ void CSheduler::internal_Register(ISheduled* O, BOOL RT)
113113 TNext.dwTimeOfLastExecute = Device.dwTimeGlobal ;
114114 TNext.Object = O;
115115 TNext.scheduled_name = O->shedule_Name ();
116- O->shedule .b_RT = TRUE ;
116+ O->GetSchedulerData () .b_RT = TRUE ;
117117
118118 ItemsRT.push_back (TNext);
119119 }
@@ -125,7 +125,7 @@ void CSheduler::internal_Register(ISheduled* O, BOOL RT)
125125 TNext.dwTimeOfLastExecute = Device.dwTimeGlobal ;
126126 TNext.Object = O;
127127 TNext.scheduled_name = O->shedule_Name ();
128- O->shedule .b_RT = FALSE ;
128+ O->GetSchedulerData () .b_RT = FALSE ;
129129
130130 // Insert into priority Queue
131131 Push (TNext);
@@ -265,7 +265,7 @@ void CSheduler::Register(ISheduled* A, BOOL RT)
265265 R.OP = TRUE ;
266266 R.RT = RT;
267267 R.Object = A;
268- R.Object ->shedule .b_RT = RT;
268+ R.Object ->GetSchedulerData () .b_RT = RT;
269269
270270#ifdef DEBUG_SCHEDULER
271271 Msg (" SCHEDULER: register [%s][%x]" , *A->shedule_Name (), A);
@@ -284,21 +284,21 @@ void CSheduler::Unregister(ISheduled* A)
284284
285285 if (m_processing_now)
286286 {
287- if (internal_Unregister (A, A->shedule .b_RT , false ))
287+ if (internal_Unregister (A, A->GetSchedulerData () .b_RT , false ))
288288 return ;
289289 }
290290
291291 ItemReg R;
292292 R.OP = FALSE ;
293- R.RT = A->shedule .b_RT ;
293+ R.RT = A->GetSchedulerData () .b_RT ;
294294 R.Object = A;
295295
296296 Registration.push_back (R);
297297}
298298
299299void CSheduler::EnsureOrder (ISheduled* Before, ISheduled* After)
300300{
301- VERIFY (Before->shedule .b_RT && After->shedule .b_RT );
301+ VERIFY (Before->GetSchedulerData () .b_RT && After->GetSchedulerData () .b_RT );
302302
303303 for (u32 i = 0 ; i < ItemsRT.size (); i++)
304304 {
@@ -362,14 +362,14 @@ void CSheduler::ProcessStep()
362362 // Real update call
363363 // Msg ("------- %d:",Device.dwFrame);
364364#ifdef DEBUG
365- T.Object ->dbg_startframe = Device.dwFrame ;
365+ T.Object ->GetSchedulerData (). dbg_startframe = Device.dwFrame ;
366366 eTimer.Start ();
367367 // LPCSTR _obj_name = T.Object->shedule_Name().c_str();
368368#endif // DEBUG
369369
370370 // Calc next update interval
371- u32 dwMin = _max (u32 (30 ), T.Object ->shedule .t_min );
372- u32 dwMax = (1000 + T.Object ->shedule .t_max ) / 2 ;
371+ u32 dwMin = _max (u32 (30 ), T.Object ->GetSchedulerData () .t_min );
372+ u32 dwMax = (1000 + T.Object ->GetSchedulerData () .t_max ) / 2 ;
373373 float scale = T.Object ->shedule_Scale ();
374374 u32 dwUpdate = dwMin + iFloor (float (dwMax - dwMin)*scale);
375375 clamp (dwUpdate, u32 (_max (dwMin, u32 (20 ))), dwMax);
@@ -378,7 +378,7 @@ void CSheduler::ProcessStep()
378378
379379 m_current_step_obj = T.Object ;
380380 // try {
381- T.Object ->shedule_Update (clampr (Elapsed, u32 (1 ), u32 (_max (u32 (T.Object ->shedule .t_max ), u32 (1000 )))));
381+ T.Object ->shedule_Update (clampr (Elapsed, u32 (1 ), u32 (_max (u32 (T.Object ->GetSchedulerData () .t_max ), u32 (1000 )))));
382382 if (!m_current_step_obj)
383383 {
384384#ifdef DEBUG_SCHEDULER
@@ -484,8 +484,8 @@ void CSheduler::Update()
484484
485485 u32 Elapsed = dwTime - T.dwTimeOfLastExecute ;
486486#ifdef DEBUG
487- VERIFY (T.Object ->dbg_startframe != Device.dwFrame );
488- T.Object ->dbg_startframe = Device.dwFrame ;
487+ VERIFY (T.Object ->GetSchedulerData (). dbg_startframe != Device.dwFrame );
488+ T.Object ->GetSchedulerData (). dbg_startframe = Device.dwFrame ;
489489#endif
490490 T.Object ->shedule_Update (Elapsed);
491491 T.dwTimeOfLastExecute = dwTime;
0 commit comments