-
Notifications
You must be signed in to change notification settings - Fork 7
task_list
Alairion edited this page May 8, 2021
·
3 revisions
Defined in header <nes/thread_pool.hpp>
class task_list;
nes::task_list
are opaque handles. To create an actual task list you have to use nes::task_builder
.
Function | Description |
---|---|
task_list |
Creates a new, invalid, task list |
~task_list |
Destroys the task list |
operator= |
Assigns a task list |
#include <nes/thread_pool.hpp>
int main()
{
nes::task_builder builder{};
builder.dispatch(42, 12, 3, [](std::uint32_t x, std::uint32_t y, std::uint32_t z)
{
//Do something
});
builder.execute([]()
{
//Do something
});
nes::task_list list{builder.build()};
}