Belle II Software
release-05-01-25
RWLock.h
1
#ifndef _Belle2_RWLock_hh
2
#define _Belle2_RWLock_hh
3
4
#include <pthread.h>
5
6
namespace
Belle2
{
12
class
RWLock
{
13
14
public
:
15
static
size_t
size()
16
{
17
return
sizeof
(pthread_rwlock_t);
18
}
19
20
// constructors and destructor
21
public
:
22
RWLock
();
23
~
RWLock
();
24
25
// member functions;
26
public
:
27
bool
init();
28
bool
rdlock();
29
bool
wrlock();
30
bool
unlock();
31
bool
destroy();
32
33
// data members;
34
private
:
35
pthread_rwlock_t m_lock;
36
37
};
38
40
};
41
42
#endif
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::RWLock
Definition:
RWLock.h:12
daq
slc
system
include
RWLock.h
Generated on Fri Nov 5 2021 03:50:13 for Belle II Software by
1.8.17