This is an automated email from the ASF dual-hosted git repository.

guangmingchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 92ad8828 ExecuteQueue doc: support rvalue task (#2323)
92ad8828 is described below

commit 92ad8828d49aeee97d88a7492727f2342e292d32
Author: Bright Chen <[email protected]>
AuthorDate: Mon Jul 24 20:57:04 2023 +0800

    ExecuteQueue doc: support rvalue task (#2323)
---
 docs/cn/execution_queue.md | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/docs/cn/execution_queue.md b/docs/cn/execution_queue.md
index b91c6bcc..5fb9d412 100644
--- a/docs/cn/execution_queue.md
+++ b/docs/cn/execution_queue.md
@@ -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的任务之前执行.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to