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
{
18
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
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
daq
slc
system
include
Mutex.h
Generated on Mon Sep 1 2025 02:49:31 for Belle II Software by
1.13.2