CsLibGuarded
1.4.2
|
#include <CsLibGuarded/cs_shared_guarded.h>
This templated class wraps an object and allows only one thread at a time to modify the protected object.
This class will use std::shared_timed_mutex for the internal locking mechanism by default. In C++17 the std::shared_mutex class is also available.
The handle returned by the various lock methods is moveable but not copyable.
Definition at line 42 of file cs_shared_guarded.h.