Skip to content

Commit

Permalink
[bugfix] reset dynamic engine work mothed for the reason of lock error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Oct 21, 2023
1 parent 9342f7d commit 9f7b2db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ CVoid GDynamicEngine::afterElementRun(GElementPtr element) {
process(cur, cur == ready.back());
}

CGRAPH_LOCK_GUARD lock(lock_);
/**
* 满足一下条件之一,则通知wait函数停止等待
* 1,无后缀节点全部执行完毕
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class GDynamicEngine : public GEngine {
GElementPtrArr total_element_arr_; // pipeline中所有的元素信息集合
GElementPtrArr front_element_arr_; // 没有依赖的元素信息
CSize total_end_size_ = 0; // 图结束节点数量
std::atomic<CSize> finished_end_size_ { 0 }; // 执行结束节点数量
CSize finished_end_size_ = 0; // 执行结束节点数量
std::atomic<CSize> run_element_size_ { 0 }; // 执行元素的个数,用于后期校验。这里和静态不一样,需要加atomic
CStatus cur_status_; // 当前全局的状态信息

Expand Down

0 comments on commit 9f7b2db

Please sign in to comment.