|
Uni20
Asynchronous tensor and runtime library.
|
Awaiter that yields an owning storage-access proxy. More...
#include <buffers.hpp>
Public Types | |
| using | value_type = shared_storage< T > |
Public Member Functions | |
| bool | await_ready () const noexcept |
| Reports whether the writer epoch is immediately writable. | |
| OwningStorageAccessProxy< T > | await_resume () |
| Resume and transfer writer ownership to a storage proxy. | |
| void | await_suspend (BasicTask &&t) noexcept |
| Suspend until the writer epoch becomes writable. | |
| std::shared_ptr< EpochContext > | epoch_context_shared () const noexcept |
| Returns the epoch context used for exception propagation. | |
| OwningStorageAwaiter (EpochContextWriter< T > &&writer) | |
| Construct from an owning writer. | |
Awaiter that yields an owning storage-access proxy.
| T | Stored value type. |
| using uni20::async::OwningStorageAwaiter< T >::value_type = shared_storage<T> |
|
inlineexplicit |
Construct from an owning writer.
| writer | Writer handle transferred into this awaiter. |
|
inlinenoexcept |
Reports whether the writer epoch is immediately writable.
true when no suspension is needed.
|
inline |
Resume and transfer writer ownership to a storage proxy.
|
inlinenoexcept |
Suspend until the writer epoch becomes writable.
| t | Owning task to suspend and enqueue. |
|
inlinenoexcept |
Returns the epoch context used for exception propagation.