8#ifndef _Belle2_SharedMemory_h
9#define _Belle2_SharedMemory_h
22 static bool unlink(
const std::string& path);
27 SharedMemory(
const std::string& path,
size_t size);
28 SharedMemory(
const SharedMemory&);
33 bool open(
const std::string& path,
size_t size);
39 void* map(
size_t,
size_t);
42 const std::string& getPath()
const {
return m_path; }
43 size_t size()
const {
return m_size; }
44 int getfd()
const {
return m_fd; }
45 bool truncate(
size_t size);
49 const SharedMemory& operator=(
const SharedMemory&);
19 class SharedMemory {
…};
Abstract base class for different kinds of events.