geopm
3.1.1.dev456+g3ba31824
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
libgeopmd
include
geopm
SharedMemoryScopedLock.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 - 2024 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
};
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