|
Uni20
Asynchronous tensor and runtime library.
|
Owning proxy providing access to writer storage. More...
#include <buffers.hpp>
Public Types | |
| using | value_type = shared_storage< T > |
Public Member Functions | |
| shared_storage< T > & | get () |
| Returns mutable access to the underlying shared storage. | |
| shared_storage< T > const & | get () const |
| Returns const access to the underlying shared storage. | |
| operator shared_storage< T > & () | |
| operator shared_storage< T > const & () const | |
| shared_storage< T > * | operator-> () |
| shared_storage< T > const * | operator-> () const |
| OwningStorageAccessProxy & | operator= (OwningStorageAccessProxy &&) noexcept=delete |
| OwningStorageAccessProxy & | operator= (OwningStorageAccessProxy const &)=delete |
| OwningStorageAccessProxy ()=delete | |
| OwningStorageAccessProxy (OwningStorageAccessProxy &&) noexcept=default | |
| OwningStorageAccessProxy (OwningStorageAccessProxy const &)=delete | |
| void | release () noexcept |
| Release the writer epoch held by this proxy. | |
| T | take () |
| Move the stored value out of writer storage. | |
| T | take_release () |
| Move the stored value out and release the writer epoch. | |
Friends | |
| class | OwningStorageAwaiter< T > |
Owning proxy providing access to writer storage.
| T | Stored value type. |
| using uni20::async::OwningStorageAccessProxy< T >::value_type = shared_storage<T> |
|
delete |
|
delete |
|
defaultnoexcept |
|
inline |
Returns mutable access to the underlying shared storage.
|
inline |
Returns const access to the underlying shared storage.
|
inline |
|
inline |
|
inline |
|
inline |
|
deletenoexcept |
|
delete |
|
inlinenoexcept |
Release the writer epoch held by this proxy.
|
inline |
Move the stored value out of writer storage.
|
inline |
Move the stored value out and release the writer epoch.
|
friend |