Skip to content

Commit 3088ac5

Browse files
committed
[bugfix] fix std::launch::any compile error on linux.
1 parent b12e703 commit 3088ac5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphCtrl/GraphPipeline/GPipeline.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class GPipeline : public GPipelineObject,
4545
* @param policy
4646
* @return
4747
*/
48-
std::future<CStatus> asyncRun(std::launch policy = std::launch::any);
48+
std::future<CStatus> asyncRun(std::launch policy = std::launch::async);
4949

5050
/**
5151
* 异步执行pipeline的全部流程
@@ -54,7 +54,7 @@ class GPipeline : public GPipelineObject,
5454
* @return
5555
*/
5656
std::future<CStatus> asyncProcess(CSize runTimes = CGRAPH_DEFAULT_LOOP_TIMES,
57-
std::launch policy = std::launch::any);
57+
std::launch policy = std::launch::async);
5858

5959
/**
6060
* 停止执行流程,多用于异步执行流程中

0 commit comments

Comments
 (0)