#include <userver/concurrent/variable.hpp>
Proxy class for locked access to data protected with locking::SharedLock<T>
Definition at line 17 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. | |
Lock & | GetLock () |
using concurrent::LockedPtr< Lock, Data >::Mutex = typename Lock::mutex_type |
Definition at line 19 of file variable.hpp.
|
inline |
Definition at line 21 of file variable.hpp.
|
inline |
Definition at line 22 of file variable.hpp.
|
inline |
Definition at line 36 of file variable.hpp.
|
inline |
Definition at line 24 of file variable.hpp.
|
inline |
Don't use *tmp for temporary value, store it to variable.
Definition at line 28 of file variable.hpp.
|
inline |
Definition at line 25 of file variable.hpp.
|
inline |
Definition at line 30 of file variable.hpp.
|
inline |
Don't use tmp-> for temporary value, store it to variable.
Definition at line 34 of file variable.hpp.
|
inline |
Definition at line 31 of file variable.hpp.