Belle II Software
development
Mutex.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_Mutex_hh
9
#define _Belle2_Mutex_hh
10
11
#include <pthread.h>
12
13
namespace
Belle2
{
19
class
Mutex
{
20
21
friend
class
Cond
;
22
23
// constructors & destructors
24
public
:
25
Mutex
();
26
~Mutex
();
27
28
// member methods
29
public
:
30
bool
lock();
31
bool
unlock();
32
33
// member data
34
private
:
35
pthread_mutex_t m_mu;
36
pthread_mutexattr_t m_attr;
37
38
};
39
41
}
42
43
#endif
Belle2::Cond
Definition:
Cond.h:19
Belle2::Mutex
Definition:
Mutex.h:19
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
daq
slc
system
include
Mutex.h
Generated on Fri Nov 8 2024 02:35:50 for Belle II Software by
1.9.6