CsLibGuarded  1.4.2
libguarded::shared_guarded< T, M, L > Class Template Reference

#include <CsLibGuarded/cs_shared_guarded.h>

Detailed Description

template<typename T, typename M = std::shared_timed_mutex, typename L = std::shared_lock<M>>
class libguarded::shared_guarded< T, M, L >

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.


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