Lock_From_Outside is a header-only C++20 library that provides thread-safe access to protected data through a convenient locking interface. It combines a wrapper class with different locking methods to ensure safe concurrent access.
- Header-only: No extra compilation or linking required
- Type-safe: Template-based compile-time safety
- Exception-safe: Uses RAII for automatic lock release
- Recursive: Support recursive mutexing to allow same thread relocking
- Flexible: Supports custom lock types via template parameter