|
Mir
|
Smart-pointer-esque accessor for the protected data. More...
#include <synchronised.h>
Public Member Functions | |
| LockedImpl (LockedImpl &&from) noexcept | |
| ~LockedImpl ()=default | |
| auto | operator* () const -> U & |
| auto | operator-> () const -> U * |
| void | drop () |
| Relinquish access to the data. More... | |
| template<typename Cv , typename Predicate > | |
| void | wait (Cv &cv, Predicate stop_waiting) |
| Allows waiting for a condition variable. More... | |
Friends | |
| class | Synchronised |
Smart-pointer-esque accessor for the protected data.
Ensures exclusive access to the referenced data.
|
inlinenoexcept |
|
default |
|
inline |
Relinquish access to the data.
This prevents further access to the contained data through this handle, and allows other code to acquire access.
|
inline |
|
inline |
|
inline |
Allows waiting for a condition variable.
The protected data may be accessed both in the predicate and after this method completes.
Copyright © 2012-2023
Canonical Ltd.
Generated on Wed Feb 1 16:59:23 UTC 2023
This documentation is licensed under the GPL version 2 or 3.