Struct bypass_mutex¶
Lockable without lock operation. More...
#include <channel.hpp>
Public Functions¶
Type | Name |
---|---|
constexpr void | lock () noexcept Do nothing since this is 'bypass' lock. |
constexpr bool | try_lock () noexcept |
constexpr void | unlock () noexcept Do nothing since it didn't locked something. |
Detailed Description¶
Note:
channel
uses lockable whenever read/write is requested. If its object is used without race condition, such lock operation can be skipped. Use this bypass lockable for such cases.
Public Functions Documentation¶
function lock¶
inline constexpr void bypass_mutex::lock () noexcept
function try_lock¶
inline constexpr bool bypass_mutex::try_lock () noexcept
function unlock¶
inline constexpr void bypass_mutex::unlock () noexcept
The documentation for this class was generated from the following file interface/coroutine/channel.hpp