CsLibGuarded  1.4.1
libguarded::deferred_guarded< T, M > Class Template Reference

#include <CsLibGuarded/cs_deferred_guarded.h>

Detailed Description

template<typename T, typename M = std::shared_timed_mutex>
class libguarded::deferred_guarded< T, M >

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 class std::shared_mutex is available as well.

The shared_handle returned by the various lock methods is moveable but not copyable.

Definition at line 49 of file cs_deferred_guarded.h.


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