22#include <flow/util/util.hpp>
40template<
typename Arena_t>
91template<
typename Arena_t>
96template<
typename Arena_t>
98 flow::util::Scoped_setter<
Arena*>(&s_this_thread_active_arena, std::move(new_arena_not_null))
101 &&
"Per contract do not activate null. Current arena is null only in the outside scope.");
104template<
typename Arena_t>
107template<
typename Arena_t>
110 return s_this_thread_active_arena;
RAII-style class operating a stack-like notion of the given thread's currently active SHM-aware Arena...
~Arena_activator()
See ctor. This undoes what that did.
Arena_activator(Arena *new_arena_not_null)
Activates the given Arena.
Arena_t Arena
Short-hand for the Arena_t type this activates/deactivates in the current thread of ctor/dtor.
static Arena * this_thread_active_arena()
Returns the active arena, as understood by Stateless_allocator<T, Arena> (any T) at this point in the...
static thread_local Arena * s_this_thread_active_arena
See this_thread_active_arena().
ipc::shm sub-module providing integration between STL-compliant components (including containers) and...