This revision provides similar lock/unlock behavior to std::unique_lock in addition to std::defer_lock.
User can choose to lock the mutex upon object construction or do it manually. The lock would be unlocked either within the destructor or by calling unlock explicitly.
The original SmartScopedReader and SmartScopedWriter are also replaced by this generic version of reader/writer lock.
Details
Details
Diff Detail
Diff Detail