Skip to content

Commit

Permalink
[bugfix] fix std::launch::any compile error on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Dec 10, 2024
1 parent b12e703 commit 3088ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GraphCtrl/GraphPipeline/GPipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class GPipeline : public GPipelineObject,
* @param policy
* @return
*/
std::future<CStatus> asyncRun(std::launch policy = std::launch::any);
std::future<CStatus> asyncRun(std::launch policy = std::launch::async);

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

/**
* 停止执行流程,多用于异步执行流程中
Expand Down

0 comments on commit 3088ac5

Please sign in to comment.