|
ThreadSchedule 3.0.0
Modern C++ thread management library
|
#include <work_stealing_deque.hpp>
Public Member Functions | |
| work_stealing_deque (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 18 of file work_stealing_deque.hpp.
|
inlineexplicit |
Definition at line 43 of file work_stealing_deque.hpp.
|
inline |
Definition at line 117 of file work_stealing_deque.hpp.
|
inline |
Definition at line 123 of file work_stealing_deque.hpp.
|
inline |
Definition at line 111 of file work_stealing_deque.hpp.
|
inline |
Definition at line 76 of file work_stealing_deque.hpp.
|
inline |
Definition at line 49 of file work_stealing_deque.hpp.
|
inline |
Definition at line 63 of file work_stealing_deque.hpp.
|
inline |
Definition at line 103 of file work_stealing_deque.hpp.
|
inline |
Definition at line 90 of file work_stealing_deque.hpp.
|
staticconstexpr |
Definition at line 21 of file work_stealing_deque.hpp.
|
staticconstexpr |
Definition at line 22 of file work_stealing_deque.hpp.