geopm
3.1.1.dev579+g75d9c8b9
GEOPM - Global Extensible Open Power Manager
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
c
d
e
g
h
i
j
k
l
m
n
p
r
s
t
v
w
Functions
_
a
c
d
e
g
h
i
k
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
b
c
d
f
h
i
j
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
g
m
n
Related Symbols
Files
File List
File Members
All
_
c
d
g
m
Functions
g
m
Typedefs
Enumerations
Enumerator
g
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
libgeopmd
include
geopm
SharedMemoryScopedLock.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 - 2025 Intel Corporation
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#ifndef SHAREDMEMORYSCOPEDLOCK_HPP_INCLUDE
7
#define SHAREDMEMORYSCOPEDLOCK_HPP_INCLUDE
8
9
#include <pthread.h>
10
11
#include "
geopm_public.h
"
12
13
namespace
geopm
14
{
17
class
GEOPM_PUBLIC
SharedMemoryScopedLock
18
{
19
public
:
20
SharedMemoryScopedLock
() =
delete
;
21
SharedMemoryScopedLock
(pthread_mutex_t *mutex);
22
SharedMemoryScopedLock
(
const
SharedMemoryScopedLock
&other) =
delete
;
23
SharedMemoryScopedLock
&
operator=
(
const
SharedMemoryScopedLock
&other) =
delete
;
24
virtual
~SharedMemoryScopedLock
();
25
private
:
26
pthread_mutex_t *m_mutex;
27
};
17
class
GEOPM_PUBLIC
SharedMemoryScopedLock
{
…
};
28
}
29
30
#endif
geopm::SharedMemoryScopedLock
An object used to automatically hold a SharedMemory mutex while in scope, and release it when out of ...
Definition
SharedMemoryScopedLock.hpp:18
geopm::SharedMemoryScopedLock::SharedMemoryScopedLock
SharedMemoryScopedLock(const SharedMemoryScopedLock &other)=delete
geopm::SharedMemoryScopedLock::operator=
SharedMemoryScopedLock & operator=(const SharedMemoryScopedLock &other)=delete
geopm::SharedMemoryScopedLock::SharedMemoryScopedLock
SharedMemoryScopedLock()=delete
geopm_public.h
GEOPM_PUBLIC
#define GEOPM_PUBLIC
Definition
geopm_public.h:10
geopm
Definition
Agg.cpp:20
Generated by
1.9.8