OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
thread_safety.h
1
#pragma once
2
3
#include <type_traits>
4
5
namespace
ozo {
6
16
template
<
bool
enabled>
17
struct
thread_safety
: std::bool_constant<enabled> {
18
constexpr
auto
operator !()
const
noexcept {
19
return
thread_safety<!enabled>
{};
20
}
21
};
22
23
constexpr
thread_safety<true>
thread_safe;
24
25
}
// namespace ozo
ozo::thread_safety
defines admissibility to use in multithreaded environment without additional synchronization
Definition:
thread_safety.h:17
include
ozo
core
thread_safety.h
Generated by
1.8.18