ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::thread::Lockable Concept Reference

Defines a type that can be locked. More...

#include <Lockable.hpp>

Concept definition

template<typename L>
concept ecstasy::thread::Lockable = requires(L &lockable) {
{ lockable.lock() } -> std::same_as<void>;
{ lockable.unlock() } -> std::same_as<void>;
}
Defines a type that can be locked.
Definition Lockable.hpp:30

Detailed Description

Defines a type that can be locked.

Note
Concept implementation of named requirement https://en.cppreference.com/w/cpp/named_req/BasicLockable
Template Parameters
LEvaluated Type.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (20224-31-03)

Definition at line 30 of file Lockable.hpp.