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
9
10template <typename Mtx>
12 Mtx &m;
13 explicit ScopedUnlock(Mtx &m) : m(m) { m.unlock(); }
14 ~ScopedUnlock() { m.lock(); }
15};
16
Definition unlock.h:11
Mtx & m
Definition unlock.h:12
~ScopedUnlock()
Definition unlock.h:14
ScopedUnlock(Mtx &m)
Definition unlock.h:13
#define WEBCFACE_NS_END
Definition webcface-config.h:104
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:103