Belle II Software
release-05-02-19
Mutex.h
1
#ifndef _Belle2_Mutex_hh
2
#define _Belle2_Mutex_hh
3
4
#include <pthread.h>
5
6
namespace
Belle2
{
12
class
Mutex
{
13
14
friend
class
Cond
;
15
16
// constructors & destructors
17
public
:
18
Mutex
();
19
~
Mutex
();
20
21
// member methods
22
public
:
23
bool
lock();
24
bool
unlock();
25
26
// member data
27
private
:
28
pthread_mutex_t m_mu;
29
pthread_mutexattr_t m_attr;
30
31
};
32
34
}
35
36
#endif
Belle2::Mutex
Definition:
Mutex.h:12
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::Cond
Definition:
Cond.h:12
daq
slc
system
include
Mutex.h
Generated on Tue Jan 4 2022 02:54:36 for Belle II Software by
1.8.17