#include "ipc.h" #include #include #include #include #include #include "def.h" #include "shm.h" #include "tls_pointer.h" #include "memory/resource.hpp" namespace { using namespace ipc; using data_t = byte_t[data_length]; using msg_id_t = std::size_t; inline auto acc_of_msg() { static shm::handle g_shm { "GLOBAL_ACC_STORAGE__", sizeof(std::atomic) }; return static_cast*>(g_shm.get()); } template