thread-pool
Loading...
Searching...
No Matches
dp::is_lockable Concept Reference

Simple concept for the Lockable and Basic Lockable types as defined by the C++ standard. More...

#include <thread_safe_queue.h>

Concept definition

template<typename Lock>
concept dp::is_lockable = requires(Lock&& lock) {
lock.lock();
lock.unlock();
{ lock.try_lock() } -> std::convertible_to<bool>;
}
Simple concept for the Lockable and Basic Lockable types as defined by the C++ standard.
Definition thread_safe_queue.h:17

Detailed Description

Simple concept for the Lockable and Basic Lockable types as defined by the C++ standard.

See https://en.cppreference.com/w/cpp/named_req/Lockable and https://en.cppreference.com/w/cpp/named_req/BasicLockable for details.