| 36 | namespace { |
| 37 | |
| 38 | void SendCmdMsg(const std::vector<const TaskProto*>& tasks, ActorCmd cmd) { |
| 39 | for (const TaskProto* task : tasks) { |
| 40 | ActorMsg msg = ActorMsg::BuildCommandMsg(task->task_id(), cmd); |
| 41 | Singleton<ActorMsgBus>::Get()->SendMsg(msg); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | void HandoutTasks(const std::vector<const TaskProto*>& tasks) { |
| 46 | for (const TaskProto* task : tasks) { |
no test coverage detected