ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::advanced::global_work_stealing_pool Class Reference

#include <global_work_stealing_pool.hpp>

Static Public Member Functions

static void init (worker_count count)
 
template<typename F , typename... Args>
static auto submit (F &&function, Args &&... args) -> result< std::future< detail::bind_result_t< F, Args... > > >
 
template<typename F , typename... Args>
static auto submit_or_throw (F &&function, Args &&... args) -> std::future< detail::bind_result_t< F, Args... > >
 
template<typename F , typename... Args>
static auto post (F &&function, Args &&... args) -> result< void >
 
template<typename F , typename... Args>
static void post_or_throw (F &&function, Args &&... args)
 

Detailed Description

Definition at line 15 of file global_work_stealing_pool.hpp.

Member Function Documentation

◆ init()

static void threadschedule::advanced::global_work_stealing_pool::init ( worker_count  count)
inlinestatic

◆ post()

template<typename F , typename... Args>
static auto threadschedule::advanced::global_work_stealing_pool::post ( F &&  function,
Args &&...  args 
) -> result<void>
inlinestatic

◆ post_or_throw()

template<typename F , typename... Args>
static void threadschedule::advanced::global_work_stealing_pool::post_or_throw ( F &&  function,
Args &&...  args 
)
inlinestatic

Definition at line 46 of file global_work_stealing_pool.hpp.

References post().

◆ submit()

template<typename F , typename... Args>
static auto threadschedule::advanced::global_work_stealing_pool::submit ( F &&  function,
Args &&...  args 
) -> result<std::future<detail::bind_result_t<F, Args...>>>
inlinestatic

◆ submit_or_throw()

template<typename F , typename... Args>
static auto threadschedule::advanced::global_work_stealing_pool::submit_or_throw ( F &&  function,
Args &&...  args 
) -> std::future<detail::bind_result_t<F, Args...>>
inlinestatic

Definition at line 31 of file global_work_stealing_pool.hpp.

References submit().


The documentation for this class was generated from the following file: