#include <userver/concurrent/variable.hpp>
Proxy class for locked access to data protected with locking::SharedLock<T>
Definition at line 21 of file variable.hpp.
Public Types | |
| using | Mutex = typename Lock::mutex_type |
Public Member Functions | |
| LockedPtr (Mutex &mutex, Data &data) | |
| LockedPtr (Lock &&lock, Data &data) | |
| Data & | operator* () & |
| const Data & | operator* () const & |
| Data & | operator* () && |
| Don't use *tmp for temporary value, store it to variable. | |
| Data * | operator-> () & |
| const Data * | operator-> () const & |
| Data * | operator-> () && |
| Don't use tmp-> for temporary value, store it to variable. | |
| Data & | GetUnsafeForStableSubobject () & |
| const Data & | GetUnsafeForStableSubobject () const & |
| Data & | GetUnsafeForStableSubobject () && |
| Don't use *tmp for temporary value, store it to variable. | |
| Lock & | GetLock () |
| using concurrent::LockedPtr< Lock, Data >::Mutex = typename Lock::mutex_type |
Definition at line 23 of file variable.hpp.
|
inline |
Definition at line 25 of file variable.hpp.
|
inline |
Definition at line 29 of file variable.hpp.
|
inline |
Definition at line 54 of file variable.hpp.
|
inline |
For node-based containers, e.g. std::unordered_map, where container access needs to be locked, but after that the reference is stable and does not need the lock anymore.
Definition at line 48 of file variable.hpp.
|
inline |
Don't use *tmp for temporary value, store it to variable.
Definition at line 52 of file variable.hpp.
|
inline |
Definition at line 49 of file variable.hpp.
|
inline |
Definition at line 34 of file variable.hpp.
|
inline |
Don't use *tmp for temporary value, store it to variable.
Definition at line 38 of file variable.hpp.
|
inline |
Definition at line 35 of file variable.hpp.
|
inline |
Definition at line 40 of file variable.hpp.
|
inline |
Don't use tmp-> for temporary value, store it to variable.
Definition at line 44 of file variable.hpp.
|
inline |
Definition at line 41 of file variable.hpp.