Skip to content

Commit

Permalink
[doc] add GEvent doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Mar 5, 2023
1 parent 6d491e6 commit 8e70c0c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ int main() {
* [纯序员给你介绍图化框架的简单实现——面向切面](http://www.chunel.cn/archives/cgraph-aspect-introduce)
* [纯序员给你介绍图化框架的简单实现——函数注入](http://www.chunel.cn/archives/cgraph-function-introduce)
* [纯序员给你介绍图化框架的简单实现——消息机制](http://www.chunel.cn/archives/cgraph-message-introduce)
* [纯序员给你介绍图化框架的简单实现——事件触发](http://www.chunel.cn/archives/cgraph-event-introduce)
* [纯序员给你介绍图化框架的简单实现——线程池优化(一)](http://www.chunel.cn/archives/cgraph-threadpool-1-introduce)
* [纯序员给你介绍图化框架的简单实现——线程池优化(二)](http://www.chunel.cn/archives/cgraph-threadpool-2-introduce)
* [纯序员给你介绍图化框架的简单实现——线程池优化(三)](http://www.chunel.cn/archives/cgraph-threadpool-3-introduce)
Expand Down Expand Up @@ -287,8 +288,7 @@ int main() {
[2023.02.22 - v2.3.4 - Chunel]
* 优化Windows系统下调度机制
* 优化`param`机制
* 优化`event`机制
* 优化`param`机制和`event`机制
</details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CStatus GStaticEngine::mark(const GSortedGElementPtrSet& elements) {
* 2,当前节点依赖的节点,只有一个后继
* 3,当前节点的依赖的后继,仍是当前节点
*/
for (GElement* element : elements) {
for (GElementPtr element : elements) {
if (1 == element->dependence_.size()
&& 1 == (*element->dependence_.begin())->run_before_.size()
&& (*(element->dependence_.begin()))->run_before_.find(element) != (*(element->dependence_.begin()))->run_before_.end()) {
Expand Down
2 changes: 1 addition & 1 deletion src/GraphCtrl/GraphParam/GParamManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CStatus GParamManager::setup() {
}


CStatus GParamManager::remove(const std::string& key) {
CStatus GParamManager::removeByKey(const std::string& key) {
CGRAPH_FUNCTION_BEGIN
CGRAPH_LOCK_GUARD lock(this->mutex_); // 创建和销毁的时候,加锁
auto param = params_map_.find(key);
Expand Down
2 changes: 1 addition & 1 deletion src/GraphCtrl/GraphParam/GParamManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class GParamManager : public GParamObject,
* @param key
* @return
*/
CStatus remove(const std::string& key);
CStatus removeByKey(const std::string& key);

/**
* 获取所有的 GParam keys 信息
Expand Down
2 changes: 1 addition & 1 deletion src/GraphCtrl/GraphParam/GParamManagerWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ CGRAPH_NAMESPACE_BEGIN
*/ \
CStatus removeGParam(const std::string& key) { \
CGRAPH_ASSERT_NOT_NULL(param_manager_) \
return param_manager_->remove(key); \
return param_manager_->removeByKey(key); \
} \
\
/**
Expand Down

0 comments on commit 8e70c0c

Please sign in to comment.