header_utils
Loading...
Searching...
No Matches
ghassanpl::shared_mutexlike Concept Reference

RW mutex (read access can be shared, write access is exclusive). More...

#include <threading.h>

Concept definition

template<typename T>
concept shared_mutexlike = mutexlike<T> && requires(T t)
{
{ t.lock_shared() };
{ t.try_lock_shared() } -> std::convertible_to<bool>;
{ t.unlock_shared() };
}
Anything that's lockable.
Definition threading.h:20
RW mutex (read access can be shared, write access is exclusive).
Definition threading.h:37

Detailed Description

RW mutex (read access can be shared, write access is exclusive).

Definition at line 37 of file threading.h.