-
Notifications
You must be signed in to change notification settings - Fork 7
thread_pool push
Alexy Pellegrini edited this page May 9, 2021
·
1 revision
nes::thread_pool::push
(1) std::future<task_list> push(task_list list);
- Pushes a task list in the thread pool. Task list's barriers and fences only affect itself.
The thread pool takes ownership of the list, and returns it to the caller through the returned future. After the thread pool has taken ownership of the list, it will reset it, making allnes::task_result
s and allnes::task_fence
s linked to the list are usable again.
Name | Description |
---|---|
list |
The task list to execute |
A future that will receive the task list
-
list
must be a valid task list.
May throw std::system_error
or std::bad_alloc
.