* 有等待的执行任务 * @param ms * @return * @notice 目的是降低cpu的占用率 */
| 93 | * @notice 目的是降低cpu的占用率 |
| 94 | */ |
| 95 | CVoid waitRunTask(const CMSec ms) { |
| 96 | const auto& task = pool_task_queue_->popWithTimeout(ms); |
| 97 | if (task) { |
| 98 | runTask(*task); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | |
| 103 | /** |
no test coverage detected