Flow-IPC 3.0.0
Flow-IPC project: Full implementation reference.
Namespaces | Functions
memory_manager.cpp File Reference
#include "ipc/shm/arena_lend/jemalloc/memory_manager.hpp"
#include "ipc/shm/arena_lend/jemalloc/detail/jemalloc.hpp"
#include "ipc/shm/arena_lend/jemalloc/detail/jemalloc_fwd.hpp"
#include "ipc/common.hpp"
#include <flow/util/string_ostream.hpp>
#include <flow/util/util.hpp>
#include <boost/system/error_code.hpp>
#include <cassert>
#include <ostream>

Go to the source code of this file.

Namespaces

namespace  ipc
 Catch-all namespace for the Flow-IPC project: A library/API in modern C++17 providing high-performance communication between processes.
 
namespace  ipc::shm
 Modules for SHared Memory (SHM) support.
 
namespace  ipc::shm::arena_lend
 ipc::shm sub-module providing the SHM-provider family based on the arena-lending paradigm: each process allocates in its own arena(s), lending the resulting objects to other processes, which can read them but not allocate (nor deallocate) in that arena.
 
namespace  ipc::shm::arena_lend::jemalloc
 ipc::shm sub-module with the SHM-jemalloc SHM-provider. See ipc::shm doc header for introduction.
 
namespace  ipc::shm::arena_lend::jemalloc::detail
 SHM-jemalloc internal (non-public) implementation details. See also stat-oriented sub-namespace: detail::stat.
 

Functions

flow::util::Mutex_non_recursive & ipc::shm::arena_lend::jemalloc::detail::jemalloc_arena_list_mutex ()
 Returns the process-global mutex serializing any mutation of jemalloc's arena set (arena create/destroy) against a whole-arena-set statistics dump (jemalloc malloc_stats_print()), so that the two never overlap. More...
 
flow::util::Mutex_non_recursive & ipc::shm::arena_lend::jemalloc::detail::jemalloc_stats_mutex ()
 Returns the process-global mutex held throughout each of Flow-IPC's jemalloc-statistics operations – Ipc_arena::memory_manager_stats(), Ipc_arena::memory_manager_stats_reset(), and the whole-arena-set stats dumps (Memory_manager::...stats_dump...()) – so that no two of them overlap. More...