WebCFace
2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
unlock.h
Go to the documentation of this file.
1
#pragma once
2
#ifdef WEBCFACE_MESON
3
#include "
webcface-config.h
"
4
#else
5
#include "webcface/common/webcface-config.h"
6
#endif
7
8
WEBCFACE_NS_BEGIN
9
10
template
<
typename
Mtx>
11
struct
ScopedUnlock
{
12
Mtx &
m
;
13
explicit
ScopedUnlock
(Mtx &m) : m(m) { m.unlock(); }
14
~ScopedUnlock
() { m.lock(); }
15
};
16
17
WEBCFACE_NS_END
webcface::ScopedUnlock
Definition
unlock.h:11
webcface::ScopedUnlock::m
Mtx & m
Definition
unlock.h:12
webcface::ScopedUnlock::~ScopedUnlock
~ScopedUnlock()
Definition
unlock.h:14
webcface::ScopedUnlock::ScopedUnlock
ScopedUnlock(Mtx &m)
Definition
unlock.h:13
webcface-config.h
WEBCFACE_NS_END
#define WEBCFACE_NS_END
Definition
webcface-config.h:104
WEBCFACE_NS_BEGIN
#define WEBCFACE_NS_BEGIN
Definition
webcface-config.h:103
common
include
webcface
common
internal
unlock.h
Generated on Tue Jan 7 2025 18:24:41 for WebCFace by
1.9.7