|
Uni20
Asynchronous tensor and runtime library.
|
Awaiter that transfers a writer handle into an owning write proxy. More...
#include <buffers.hpp>
Public Member Functions | |
| bool | await_ready () const noexcept |
| Reports whether the writer epoch is immediately writable. | |
| OwningWriteAccessProxy< T > | await_resume () |
| Resume and transfer writer ownership to an owning write proxy. | |
| void | await_suspend (BasicTask &&task) 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. | |
| OwningWriteAwaiter (EpochContextWriter< T > &&writer) | |
| Construct from an owning writer. | |
Awaiter that transfers a writer handle into an owning write proxy.
|
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 an owning write proxy.
|
inlinenoexcept |
Suspend until the writer epoch becomes writable.
| task | Owning task to suspend and enqueue. |
|
inlinenoexcept |
Returns the epoch context used for exception propagation.