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

Method cLPThreadFunc

src/Scheduler.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211void * Scheduler::cLPThreadFunc(void * user){
212 Scheduler& s = *(Scheduler*)user;
213 while(s.mRunning){
214 //double t = gam::toSec(gam::timeNow());
215 s.reclaim();
216 //double dt = toSec(timeNow()) - t;
217 //printf("%g\n", dt);
218 ::gam::sleepSec(s.mPeriod);
219 }
220 return NULL;
221}
222
223void Scheduler::start(){
224 mLPThread.joinOnDestroy(true);

Callers

nothing calls this directly

Calls 2

sleepSecFunction · 0.85
reclaimMethod · 0.80

Tested by

no test coverage detected