-
Notifications
You must be signed in to change notification settings - Fork 8
task_builder task_builder
Alexy Pellegrini edited this page May 10, 2021
·
1 revision
nes::task_builder::task_builder
(1) explicit task_builder(std::size_t thread_count = std::thread::hardware_concurrency());
(2) task_builder(const task_builder&) = delete;
(3) task_builder(task_builder&& other) noexcept;- Constructs a thread pool with the specified amount of worker threads.
- Deleted copy-constructor.
- Move-constructs a task builder,
otherbecome invalid after this call. Ifotherwas invalid before this call,*thiswill be invalid.
| Name | Description |
|---|---|
thread_count |
Amount of worker threads, if 0 use a default value of 8 worker threads. By default use the value returned by std::thread::hardware_concurrency(). This value may be used to optimize concurrency within the task list, and should match the thread count of the thread pool where the task list will be pushed. |
other |
A task builder instance |
- Explicit
- Deleted.
- May throw
std::bad_alloc. - Deleted.
- Does not throw.