|
cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
|
Thread policy for single-threaded usage (zero overhead). More...
#include <thread_policy.h>
Classes | |
| struct | mutex_type |
| No-op mutex type (lower_case to satisfy C++ BasicLockable/SharedLockable). More... | |
| struct | shared_lock |
| No-op shared (reader) lock (mirrors std::shared_lock). More... | |
| struct | unique_lock |
| No-op unique (writer) lock (mirrors std::unique_lock). More... | |
Thread policy for single-threaded usage (zero overhead).
All lock types are no-ops. This is the default policy, ensuring that single-threaded users pay no synchronization cost.
Usage: