|
ThreadSchedule 2.2.0
Modern C++ thread management library
|
#include <thread_pool.hpp>
Public Member Functions | |
| WorkStealingDeque (size_t capacity=DEFAULT_CAPACITY) | |
| auto | push (T &&item) -> bool |
| template<typename U = T, std::enable_if_t< std::is_copy_constructible_v< U >, int > = 0> | |
| auto | push (T const &item) -> bool |
| auto | pop (T &item) -> bool |
| auto | steal (T &item) -> bool |
| auto | size () const -> size_t |
| auto | empty () const -> bool |
| void | clear () |
| auto | clear_and_count () -> size_t |
Static Public Attributes | |
| static constexpr size_t | CACHE_LINE_SIZE = 64 |
| static constexpr size_t | DEFAULT_CAPACITY = 1024 |
Definition at line 332 of file thread_pool.hpp.
|
inlineexplicit |
Definition at line 360 of file thread_pool.hpp.
References DEFAULT_CAPACITY.
|
inline |
Definition at line 443 of file thread_pool.hpp.
|
inlinenodiscard |
Definition at line 450 of file thread_pool.hpp.
|
inlinenodiscard |
Definition at line 438 of file thread_pool.hpp.
References size().
|
inlinenodiscard |
Definition at line 398 of file thread_pool.hpp.
|
inlinenodiscard |
Definition at line 365 of file thread_pool.hpp.
|
inlinenodiscard |
Definition at line 382 of file thread_pool.hpp.
|
inlinenodiscard |
Definition at line 431 of file thread_pool.hpp.
Referenced by empty().
|
inlinenodiscard |
Definition at line 415 of file thread_pool.hpp.
|
staticconstexpr |
Definition at line 335 of file thread_pool.hpp.
|
staticconstexpr |
Definition at line 336 of file thread_pool.hpp.
Referenced by threadschedule::HighPerformancePool::HighPerformancePool(), and WorkStealingDeque().