Skip to content

Commit

Permalink
ExecuteQueue doc: support rvalue task (#2323)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenBright authored Jul 24, 2023
1 parent 9b102f0 commit 92ad882
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/cn/execution_queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,23 @@ template <typename T>
int execution_queue_execute(ExecutionQueueId<T> id,
typename butil::add_const_reference<T>::type task,
const TaskOptions* options,
TaskHandle* handle);
TaskHandle* handle);
template <typename T>
int execution_queue_execute(ExecutionQueueId<T> id,
T&& task);
template <typename T>
int execution_queue_execute(ExecutionQueueId<T> id,
T&& task,
const TaskOptions* options);
template <typename T>
int execution_queue_execute(ExecutionQueueId<T> id,
T&& task,
const TaskOptions* options,
TaskHandle* handle);
```

high_priority的task之间的执行顺序也会**严格按照提交顺序**, 这点和ExecMan不同, ExecMan的QueueExecEmergent的AsyncContex执行顺序是undefined. 但是这也意味着你没有办法将任何任务插队到一个high priority的任务之前执行.
Expand Down

0 comments on commit 92ad882

Please sign in to comment.