null_mutex.hpp
Go to the documentation of this file.
/*
* RESTinio
*/
#pragma once
namespace restinio
{
//
// null_mutex_t
//
struct null_mutex_t
{
constexpr void lock() const noexcept {}
constexpr bool try_lock() const noexcept { return true; }
constexpr void unlock() const noexcept {}
};
} /* namespace restinio */
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