MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / serviceLoop

Method serviceLoop

GSM/PowerManager.cpp:96–105  ·  view source on GitHub ↗

This is called to actually do the control

Source from the content-addressed store, hash-verified

94
95// This is called to actually do the control
96void PowerManager::serviceLoop()
97{
98 while (1) {
99 usleep(1000*gConfig.getNum("GSM.Radio.PowerManager.SamplePeriod"));
100 sampleT3122();
101 if (mLast.elapsed() < gConfig.getNum("GSM.Radio.PowerManager.Period")) continue;
102 internalControlStep();
103 mLast.now();
104 }
105}
106
107
108void* GSM::PowerManagerServiceLoopAdapter(PowerManager *pm)

Callers 1

Calls 1

elapsedMethod · 0.80

Tested by

no test coverage detected