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