RESTinio
Loading...
Searching...
No Matches
null_mutex.hpp
Go to the documentation of this file.
1/*
2 * RESTinio
3 */
4
11#pragma once
12
13namespace restinio
14{
15
16//
17// null_mutex_t
18//
19
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
run_on_this_thread_settings_t< Traits > on_this_thread()
A special marker for the case when http_server must be run on the context of the current thread.
A class to be used as null_mutex.
constexpr void unlock() const noexcept
constexpr bool try_lock() const noexcept
constexpr void lock() const noexcept