提交 5608dc0d 编写于 作者: W wxyu

MS-374 Add action definition


Former-commit-id: e98698b711631419b396ccb34c7b4e131118bb5b
上级 0721f66d
......@@ -13,9 +13,8 @@ namespace engine {
void
push_task(ResourcePtr &self, ResourcePtr &other) {
auto self_task_table = self->task_table();
auto other_task_table = other->task_table();
if (!other_task_table.Empty()) {
auto &self_task_table = self->task_table();
auto &other_task_table = other->task_table();
CacheMgr cache;
auto indexes = PickToMove(self_task_table, cache, 1);
for (auto index : indexes) {
......@@ -23,9 +22,6 @@ push_task(ResourcePtr &self, ResourcePtr &other) {
auto task = self_task_table.Get(index)->task;
other_task_table.Put(task);
// TODO: mark moved future
other->WakeupLoader();
other->WakeupExecutor();
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册