Skip to content

Commit

Permalink
[perf] little change, some word describe
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Dec 10, 2023
1 parent 9da14d3 commit d2e7c59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GraphCtrl/GraphElement/GAdapter/GFence/GFence.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ class GFence : public GAdapter {
* 添加需要等待的element(必须是异步的)
* @param element
* @return
* @notice 对外仅可以
* @notice 对外仅可以添加异步节点(设置了timeout的节点)
*/
GFence* waitGElement(GElementPtr element);

/**
* 添加需要等待的一组element
* @param elements
* @return
* @notice 对外仅可以添加异步节点(设置了timeout的节点)
*/
GFence* waitGElements(const std::set<GElementPtr>& elements);

Expand Down
2 changes: 2 additions & 0 deletions src/GraphCtrl/GraphElement/GGroup/GRegion/GRegion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ CStatus GRegion::init() {
this->manager_->setScheduleStrategy(CGRAPH_POOL_TASK_STRATEGY);

is_init_ = true;
trigger_times_ = 0;
CGRAPH_FUNCTION_END
}

Expand All @@ -48,6 +49,7 @@ CStatus GRegion::destroy() {
CGRAPH_FUNCTION_CHECK_STATUS

is_init_ = false;
trigger_times_ = 0;
CGRAPH_FUNCTION_END
}

Expand Down

0 comments on commit d2e7c59

Please sign in to comment.