Iros
Loading...
Searching...
No Matches
lock.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/meta/core.h
"
4
#include "
di/meta/language.h
"
5
6
namespace
di::concepts
{
7
template
<
typename
T>
8
concept
Lock
=
requires
(T& lock) {
9
{ lock.lock() } ->
LanguageVoid
;
10
{ lock.try_lock() } ->
SameAs<bool>
;
11
{ lock.unlock() } ->
LanguageVoid
;
12
};
13
}
di::concepts::LanguageVoid
Definition
core.h:128
di::concepts::Lock
Definition
lock.h:8
di::concepts::SameAs
Definition
core.h:114
core.h
language.h
di::concepts
Definition
any_storable.h:9
libs
di
include
di
sync
concepts
lock.h
Generated by
1.13.0