-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix] fix CGRAPH_ASSERT_NOT_NULL function.
- Loading branch information
1 parent
d8f6e1f
commit cab0142
Showing
6 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
@Contact: [email protected] | ||
@File: T25-Coordinator.cpp | ||
@Time: 2023/9/8 22:01 | ||
@Desc: 本例主要演示,通过 GCoordinator 在pipeline执行的过程中,修改 | ||
@Desc: 本例主要演示,通过 GCoordinator 在pipeline执行的过程中,修改辅助线程数 | ||
***************************/ | ||
|
||
#include "MyGNode/MyNode1.h" | ||
|
@@ -14,7 +14,7 @@ using namespace CGraph; | |
void tutorial_coordinator() { | ||
GPipelinePtr pipeline = GPipelineFactory::create(); | ||
GElementPtr a, b, c, d, f, g, h = nullptr; | ||
GCoordinatorPtr<-2> e_coordinator = nullptr; // 申明一个减少三个辅助线程的 GCoordinator | ||
GCoordinatorPtr<-2> e_coordinator = nullptr; // 申明一个减少2个(-2个)辅助线程的 GCoordinator | ||
|
||
UThreadPoolConfig config; | ||
config.default_thread_size_ = 0; | ||
|