Skip to content

thread_pool push

Alexy Pellegrini edited this page May 9, 2021 · 1 revision

Functions

(1) std::future<task_list> push(task_list list);
  1. 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 all nes::task_results and all nes::task_fences linked to the list are usable again.

Parameters

Name Description
list The task list to execute

Return value

A future that will receive the task list

Preconditions

  1. list must be a valid task list.

Exceptions

May throw std::system_error or std::bad_alloc.

Clone this wiki locally