提交 60b2d7c9 编写于 作者: Y Yu Kun

fix clang format


Former-commit-id: 90882c2b33f1e772ff8a5d53e5c4483d93763b60
上级 930863fb
...@@ -209,9 +209,9 @@ Action::SpecifiedResourceLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr ...@@ -209,9 +209,9 @@ Action::SpecifiedResourceLabelTaskScheduler(ResourceMgrWPtr res_mgr, ResourcePtr
} else { } else {
auto next_res_name = task->path().Next(); auto next_res_name = task->path().Next();
auto next_res = res_mgr.lock()->GetResource(next_res_name); auto next_res = res_mgr.lock()->GetResource(next_res_name);
// if (event->task_table_item_->Move()) { // if (event->task_table_item_->Move()) {
// next_res->task_table().Put(task); // next_res->task_table().Put(task);
// } // }
event->task_table_item_->Move(); event->task_table_item_->Move();
next_res->task_table().Put(task); next_res->task_table().Put(task);
} }
......
...@@ -125,14 +125,15 @@ Resource::pick_task_execute() { ...@@ -125,14 +125,15 @@ Resource::pick_task_execute() {
if (task_table_.Execute(index)) { if (task_table_.Execute(index)) {
return task_table_.Get(index); return task_table_.Get(index);
} }
// if (task_table_[index]->task->label()->Type() == TaskLabelType::SPECIFIED_RESOURCE) { // if (task_table_[index]->task->label()->Type() == TaskLabelType::SPECIFIED_RESOURCE) {
// if (task_table_.Get(index)->task->path().Current() == task_table_.Get(index)->task->path().Last() && // if (task_table_.Get(index)->task->path().Current() == task_table_.Get(index)->task->path().Last()
// task_table_.Get(index)->task->path().Last() == name()) { // &&
// if (task_table_.Execute(index)) { // task_table_.Get(index)->task->path().Last() == name()) {
// return task_table_.Get(index); // if (task_table_.Execute(index)) {
// } // return task_table_.Get(index);
// } // }
// } // }
// }
// else try next // else try next
} }
return nullptr; return nullptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册