diff --git a/src/GraphCtrl/GraphElement/GAdapter/GFence/GFence.h b/src/GraphCtrl/GraphElement/GAdapter/GFence/GFence.h index 4f3e21c7..adec5486 100644 --- a/src/GraphCtrl/GraphElement/GAdapter/GFence/GFence.h +++ b/src/GraphCtrl/GraphElement/GAdapter/GFence/GFence.h @@ -21,7 +21,7 @@ class GFence : public GAdapter { * 添加需要等待的element(必须是异步的) * @param element * @return - * @notice 对外仅可以 + * @notice 对外仅可以添加异步节点(设置了timeout的节点) */ GFence* waitGElement(GElementPtr element); @@ -29,6 +29,7 @@ class GFence : public GAdapter { * 添加需要等待的一组element * @param elements * @return + * @notice 对外仅可以添加异步节点(设置了timeout的节点) */ GFence* waitGElements(const std::set& elements); diff --git a/src/GraphCtrl/GraphElement/GGroup/GRegion/GRegion.cpp b/src/GraphCtrl/GraphElement/GGroup/GRegion/GRegion.cpp index 7556ee3c..5b2613a7 100644 --- a/src/GraphCtrl/GraphElement/GGroup/GRegion/GRegion.cpp +++ b/src/GraphCtrl/GraphElement/GGroup/GRegion/GRegion.cpp @@ -38,6 +38,7 @@ CStatus GRegion::init() { this->manager_->setScheduleStrategy(CGRAPH_POOL_TASK_STRATEGY); is_init_ = true; + trigger_times_ = 0; CGRAPH_FUNCTION_END } @@ -48,6 +49,7 @@ CStatus GRegion::destroy() { CGRAPH_FUNCTION_CHECK_STATUS is_init_ = false; + trigger_times_ = 0; CGRAPH_FUNCTION_END }