cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
Loading...
Searching...
No Matches
cppfig::SingleThreadedPolicy Struct Reference

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...
 

Detailed Description

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:

// Default — no locking overhead:
cppfig::Configuration<MySchema> config("config.json");
Main configuration manager.
Definition configuration.h:83

The documentation for this struct was generated from the following file: