RESTinio
restinio
null_mutex.hpp
Go to the documentation of this file.
1
/*
2
* RESTinio
3
*/
4
11
#pragma once
12
13
namespace
restinio
14
{
15
16
//
17
// null_mutex_t
18
//
19
27
struct
null_mutex_t
28
{
29
constexpr
void
lock
()
const
noexcept {}
30
31
constexpr
bool
try_lock
()
const
noexcept {
return
true
; }
32
33
constexpr
void
unlock
()
const
noexcept {}
34
};
35
36
}
/* namespace restinio */
37
restinio
Definition:
asio_include.hpp:21
restinio::null_mutex_t
A class to be used as null_mutex.
Definition:
null_mutex.hpp:28
restinio::null_mutex_t::unlock
constexpr void unlock() const noexcept
Definition:
null_mutex.hpp:33
restinio::null_mutex_t::try_lock
constexpr bool try_lock() const noexcept
Definition:
null_mutex.hpp:31
restinio::null_mutex_t::lock
constexpr void lock() const noexcept
Definition:
null_mutex.hpp:29
const
#define const
Definition:
zconf.h:230
Generated by
1.9.3