ThreadSchedule 1.0.0
Modern C++ thread management library
|
High-performance work-stealing deque for individual worker threads. More...
#include <thread_pool.hpp>
Public Member Functions | |
WorkStealingDeque (size_t capacity=DEFAULT_CAPACITY) | |
auto | push (T &&item) -> bool |
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 |
Static Public Attributes | |
static constexpr size_t | CACHE_LINE_SIZE = 64 |
static constexpr size_t | DEFAULT_CAPACITY = 1024 |
High-performance work-stealing deque for individual worker threads.
Definition at line 23 of file thread_pool.hpp.
|
inlineexplicit |
Definition at line 50 of file thread_pool.hpp.
|
inline |
Definition at line 129 of file thread_pool.hpp.
|
inline |
Definition at line 88 of file thread_pool.hpp.
|
inline |
Definition at line 56 of file thread_pool.hpp.
|
inline |
Definition at line 72 of file thread_pool.hpp.
|
inline |
Definition at line 122 of file thread_pool.hpp.
|
inline |
Definition at line 106 of file thread_pool.hpp.
|
staticconstexpr |
Definition at line 26 of file thread_pool.hpp.
|
staticconstexpr |
Definition at line 27 of file thread_pool.hpp.