ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::GlobalThreadPool Class Reference

Singleton thread pool for global use (simple version) More...

#include <thread_pool.hpp>

Static Public Member Functions

static auto instance () -> ThreadPool &
template<typename F, typename... Args>
static auto submit (F &&f, Args &&... args)
template<typename Iterator>
static auto submit_range (Iterator begin, Iterator end)
template<typename Iterator, typename F>
static void parallel_for_each (Iterator begin, Iterator end, F &&func)

Detailed Description

Singleton thread pool for global use (simple version)

Definition at line 1153 of file thread_pool.hpp.

Member Function Documentation

◆ instance()

auto threadschedule::GlobalThreadPool::instance ( ) -> ThreadPool&
inlinestatic

Definition at line 1156 of file thread_pool.hpp.

◆ parallel_for_each()

template<typename Iterator, typename F>
void threadschedule::GlobalThreadPool::parallel_for_each ( Iterator begin,
Iterator end,
F && func )
inlinestatic

Definition at line 1175 of file thread_pool.hpp.

◆ submit()

template<typename F, typename... Args>
auto threadschedule::GlobalThreadPool::submit ( F && f,
Args &&... args )
inlinestatic

Definition at line 1163 of file thread_pool.hpp.

◆ submit_range()

template<typename Iterator>
auto threadschedule::GlobalThreadPool::submit_range ( Iterator begin,
Iterator end )
inlinestatic

Definition at line 1169 of file thread_pool.hpp.


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