|
ThreadSchedule 3.0.0
Modern C++ thread management library
|
#include <inline_pool.hpp>
Public Member Functions | |
| inline_pool ()=default | |
| template<typename F , typename... Args> | |
| auto | submit (F &&function, Args &&... args) -> result< std::future< detail::bind_result_t< F, Args... > > > |
| template<typename F , typename... Args> | |
| auto | submit_or_throw (F &&function, Args &&... args) -> std::future< detail::bind_result_t< F, Args... > > |
| template<typename F , typename... Args> | |
| auto | post (F &&function, Args &&... args) -> result< void > |
| template<typename F , typename... Args> | |
| void | post_or_throw (F &&function, Args &&... args) |
| template<typename Iterator > | |
| auto | submit_batch (Iterator begin, Iterator end) -> result< std::vector< std::future< void > > > |
| template<typename Iterator > | |
| auto | submit_batch_or_throw (Iterator begin, Iterator end) -> std::vector< std::future< void > > |
| template<typename Iterator , typename Function > | |
| auto | parallel_for_each (Iterator begin, Iterator end, Function &&function) -> result< void > |
| auto | wait () -> result< void > |
| auto | shutdown (shutdown_policy policy=shutdown_policy::drain) -> result< void > |
| auto | size () const noexcept -> std::size_t |
| auto | pending_tasks () const noexcept -> std::size_t |
Definition at line 20 of file inline_pool.hpp.
|
default |
|
inline |
Definition at line 77 of file inline_pool.hpp.
References threadschedule::detail::inline_pool_backend::parallel_for_each(), and threadschedule::detail::try_result().
|
inlinenoexcept |
Definition at line 109 of file inline_pool.hpp.
|
inline |
Definition at line 44 of file inline_pool.hpp.
References threadschedule::detail::inline_pool_backend::try_post().
Referenced by post_or_throw().
|
inline |
Definition at line 51 of file inline_pool.hpp.
References post().
|
inline |
Definition at line 96 of file inline_pool.hpp.
References threadschedule::detail::inline_pool_backend::shutdown(), and threadschedule::detail::to_native().
|
inlinenoexcept |
Definition at line 103 of file inline_pool.hpp.
|
inline |
Definition at line 27 of file inline_pool.hpp.
References threadschedule::detail::inline_pool_backend::try_submit().
Referenced by submit_or_throw().
|
inline |
Definition at line 60 of file inline_pool.hpp.
References threadschedule::detail::inline_pool_backend::try_submit_batch().
Referenced by submit_batch_or_throw().
|
inline |
Definition at line 67 of file inline_pool.hpp.
References submit_batch().
|
inline |
Definition at line 34 of file inline_pool.hpp.
References submit().
|
inline |
Definition at line 89 of file inline_pool.hpp.
References threadschedule::detail::inline_pool_backend::wait_for_tasks().