|
SObjectizer 5.8
|
A class to be used as mixin with actual std::mutex instance inside. More...
#include <sync_helpers.hpp>
Public Member Functions | |
| template<typename Lambda > | |
| auto | lock_and_perform (Lambda &&l) const -> decltype(l()) |
| Do actual lock and perform necessary action. | |
Private Attributes | |
| Lock_Type | m_lock |
| Actual lock. | |
A class to be used as mixin with actual std::mutex instance inside.
Usage example:
| Lock_Type | type of lock to be used for object protection. Will be used with std::lock_guard. |
Definition at line 80 of file sync_helpers.hpp.
|
inline |
Do actual lock and perform necessary action.
Definition at line 94 of file sync_helpers.hpp.
|
mutableprivate |
Actual lock.
Definition at line 88 of file sync_helpers.hpp.