Belle II Software
release-06-02-00
Main Page
Modules
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
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
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 Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
MMutex.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
#ifndef _Belle2_MMutex_h
9
#define _Belle2_MMutex_h
10
11
#include <pthread.h>
12
13
#ifdef __CINT__
14
#undef __GNUC__
15
#define _SYS__SELECT_H_
16
struct
pthread_cond_t;
17
struct
pthread_mutex_t;
18
#endif
19
20
namespace
Belle2
{
26
class
MMutex
{
27
28
friend
class
MCond
;
29
30
public
:
31
static
size_t
size() {
return
sizeof
(pthread_mutex_t); }
32
33
// constructors and destructor
34
public
:
35
MMutex
();
36
MMutex
(
void
*);
37
MMutex
(
const
MMutex
&);
38
~
MMutex
();
39
40
// member functions;
41
public
:
42
bool
init(
void
*);
43
bool
init();
44
bool
set(
void
*);
45
bool
lock();
46
bool
trylock();
47
bool
unlock();
48
bool
destroy();
49
50
public
:
51
const
MMutex
& operator=(
const
MMutex
&);
52
53
// data members;
54
private
:
55
pthread_mutex_t* m_mu;
56
57
};
58
60
};
61
62
#endif
Belle2::MCond
Definition:
MCond.h:21
Belle2::MMutex
Definition:
MMutex.h:26
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
daq
slc
system
include
MMutex.h
Generated on Thu Dec 28 2023 02:22:46 for Belle II Software by
1.9.1