std::shared_lock in C++ — Reader-Writer Locking with shared_mutex Explained

Many readers OR one writer. shared_lock on shared_mutex is how you protect read-heavy data without serializing every read.