MCPcopy Create free account
hub / github.com/LancePutnam/Gamma / hpUpdateControlFuncs

Method hpUpdateControlFuncs

src/Scheduler.cpp:244–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void Scheduler::hpUpdateControlFuncs(double dt){
245 Funcs::iterator it = mFuncs.begin();
246 while(it != mFuncs.end()){
247 Funcs::value_type& f = *it;
248 if(f.mDelay >= 0){
249 f.mDelay -= dt;
250 if(f.mDelay < 0){
251 f();
252 f.mDelay += f.mPeriod;
253 }
254 //printf("%g\n", f.mDelay);
255 ++it;
256 }
257 else{
258 //printf("remove %p\n", &f);
259 mFuncs.erase(it++);
260 }
261 }
262}
263
264void Scheduler::hpUpdateTree(){
265

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected