Belle II Software
development
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Symbols
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
▼
Belle II Software
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
alignment
►
analysis
►
arich
►
b2bii
►
background
►
beast
►
calibration
►
cdc
▼
daq
►
copper
►
dataflow
►
dataobjects
▼
dqm
▼
include
DqmMasterCallback.h
DqmMemFile.h
DqmSharedMem.h
HistoManager.h
HistoManager2.h
HistoRelay.h
HistoRelay2.h
HistoServer.h
HistoServer2.h
►
modules
►
src
►
tools
►
expreco
►
hbasf2
►
modules
►
pcie40
►
rawdata
►
rfarm
►
roisend
►
ropc
►
slc
►
storage
►
decfiles
►
display
►
dqm
►
ecl
►
framework
►
generators
►
geometry
►
hlt
►
ir
►
klm
►
masterclass
►
mdst
►
mva
►
online_book
►
pxd
►
rawdata
►
reconstruction
►
simulation
►
site_scons
►
structure
►
svd
►
top
►
tracking
►
trg
►
validation
►
vxd
Doxygen.h
resource_analyzer.py
►
File Members
DqmSharedMem.h
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
#pragma once
9
10
#include <sys/types.h>
11
12
#include <string>
13
14
namespace
Belle2
{
19
class
DqmSharedMem {
20
public
:
21
DqmSharedMem(
const
char
* name,
int
size,
bool
writeable =
true
,
const
char
* user =
nullptr
);
22
DqmSharedMem(
int
shm_id,
int
sem_id);
23
~DqmSharedMem
(
void
);
24
25
void
* ptr(
void
);
26
int
shmid(
void
);
27
28
bool
IsCreated(
void
);
29
30
static
std::string getTmpFileName(std::string user, std::string name);
31
static
bool
getIdFromTmpFileName(std::string filename,
int
& shmid,
int
& semid);
32
33
void
lock(
void
);
34
void
unlock(
void
);
35
bool
isLocked(
void
);
36
37
private
:
38
bool
m_new
{
false
};
39
key_t
m_shmkey
;
40
key_t
m_semkey
;
41
42
int
m_shmid
{-1};
43
int
m_semid
{-1};
44
void
* m_shmadr{
nullptr
};
45
};
19
class
DqmSharedMem {
…
};
46
47
}
48
Belle2::DqmSharedMem::~DqmSharedMem
~DqmSharedMem(void)
Definition
DqmSharedMem.cc:161
Belle2::DqmSharedMem::m_shmkey
key_t m_shmkey
SHM key, see shmget(2).
Definition
DqmSharedMem.h:39
Belle2::DqmSharedMem::m_semid
int m_semid
semaphore id
Definition
DqmSharedMem.h:43
Belle2::DqmSharedMem::m_shmid
int m_shmid
shared memory id
Definition
DqmSharedMem.h:42
Belle2::DqmSharedMem::m_new
bool m_new
True if we created the ring buffer ourselves (and need to clean it).
Definition
DqmSharedMem.h:38
Belle2::DqmSharedMem::m_semkey
key_t m_semkey
Semaphore key.
Definition
DqmSharedMem.h:40
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
daq
dqm
include
DqmSharedMem.h
Generated on Sat May 17 2025 02:55:58 for Belle II Software by
1.13.2