JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
Loading...
Searching...
No Matches
jh::concepts::reentrant_mutex Concept Reference

Concept for idempotent (structurally reentrant) mutexes. More...

#include <jh/conceptual/mutex_like.h>

Concept definition

template<typename M>
concept reentrant_mutex =
typename M::is_reentrant_tag;
requires std::convertible_to<typename M::is_reentrant_tag, std::true_type>;
})
General mutex-like concept.
Definition mutex_like.h:180
Concept for idempotent (structurally reentrant) mutexes.
Definition mutex_like.h:305
Trait registry for detecting idempotent (structural) reentrance.
Definition mutex_like.h:251

Detailed Description

Concept for idempotent (structurally reentrant) mutexes.

A reentrant mutex allows re-locking within the same context as a no-op, guaranteeing structural safety without internal counters.

Examples: