Belle II Software  release-08-01-10
RFSharedMem Class Reference
Inheritance diagram for RFSharedMem:
Collaboration diagram for RFSharedMem:

Public Member Functions

 RFSharedMem (const char *name)
 
RfShm_CellGetCell (int id)
 
void * ptr (void)
 
int shmid (void)
 
bool IsCreated (void)
 
void lock (void)
 
void unlock (void)
 
bool isLocked (void)
 

Static Public Member Functions

static std::string getTmpFileName (std::string user, std::string name)
 
static bool getIdFromTmpFileName (std::string filename, int &shmid, int &semid)
 

Private Attributes

bool m_new {false}
 True if we created the ring buffer ourselves (and need to clean it).
 
key_t m_shmkey
 SHM key, see shmget(2).
 
key_t m_semkey
 Semaphore key.
 
int m_shmid {-1}
 shared memory id
 
int m_semid {-1}
 semaphore id
 
void * m_shmadr {nullptr}
 

Detailed Description

Definition at line 51 of file RFSharedMem.h.


The documentation for this class was generated from the following files: