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

Any mutexlike that can also be attempted to be locked for some time. More...

#include <threading.h>

Concept definition

template<typename T>
concept timed_mutexlike = mutexlike<T> && requires(T t)
{
{ t.try_lock_for(std::chrono::seconds(1)) } -> std::convertible_to<bool>;
{ t.try_lock_until(std::chrono::high_resolution_clock::now()) } -> std::convertible_to<bool>;
}
Anything that's lockable.
Definition threading.h:20
Any mutexlike that can also be attempted to be locked for some time.
Definition threading.h:29

Detailed Description

Any mutexlike that can also be attempted to be locked for some time.

Definition at line 29 of file threading.h.