#include <rll/concepts/threading.h>
template <typename T>
lockable concept
Lockable concept.
Template parameters | |
---|---|
T | Type to check. |
The Lockable requirements extends the BasicLockable requirements to include attempted locking.
For type to be lockable, it must meet the following requirements:
- Satisfies the BasicLockable requirements
- Provide a
try_lock
method: Attempts to acquire the lock for the current execution agent (thread, process, task) without blocking. If an exception is thrown, no lock is obtained.