Template Class tpool_worker_arena_t

Class Documentation

template<typename T>
class tpool_worker_arena_t

A container of thread-local resources. Creates an object T() for each thread in the supplied thread pool. Thread pool threads then may access their own local resource using get(), while any readers may access all the resources at all times.

tpool_worker_arena_t is created from a tpool_t.

Public Functions

tpool_worker_arena_t() = delete
inline auto &get() noexcept

Must only be called from a thread pool worker.

inline const auto &get() const noexcept

Must only be called from a thread pool worker.

inline const auto &operator[](std::size_t idx) const noexcept
inline auto size() const noexcept
inline auto begin() const noexcept
inline auto end() const noexcept
inline auto rbegin() const noexcept
inline auto rend() const noexcept
inline auto cbegin() const noexcept
inline auto cend() const noexcept
inline auto crbegin() const noexcept
inline auto crend() const noexcept