| 405 | } |
| 406 | |
| 407 | void Pager::serviceLoop() |
| 408 | { |
| 409 | while (mRunning) { |
| 410 | // Wait for pending activity to clear the channel. |
| 411 | // This wait is what causes PCH to have lower priority than AGCH. |
| 412 | // getPCH returns the minimum load PCH. Each PCH sends one paging message per 51-multiframe. |
| 413 | if (unsigned load = gBTS.getPCH()->load()) { |
| 414 | LOG(DEBUG) << "Pager waiting with load " << load; |
| 415 | sleepFrames(51); // There could be multiple paging channels, in which case this is too long. |
| 416 | continue; |
| 417 | } |
| 418 | newPageAll(); |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | |
| 423 |
no test coverage detected