* 从线程池的队列中,获取任务 * @param task * @return */
| 51 | * @return |
| 52 | */ |
| 53 | virtual CBool popPoolTask(UTaskRef task) { |
| 54 | CBool result = pool_task_queue_->tryPop(task); |
| 55 | if (!result && CGRAPH_THREAD_TYPE_SECONDARY == type_) { |
| 56 | // 如果辅助线程没有获取到的话,还需要再尝试从长时间任务队列中,获取一次 |
| 57 | result = pool_priority_task_queue_->tryPop(task); |
| 58 | } |
| 59 | return result; |
| 60 | } |
| 61 | |
| 62 | |
| 63 | /** |
no outgoing calls
no test coverage detected