|
Uni20
Asynchronous tensor and runtime library.
|
Awaiter that takes and releases a value from an owning writer. More...
#include <buffers.hpp>
Public Member Functions | |
| bool | await_ready () const noexcept |
| Reports whether the writer epoch is immediately writable. | |
| T | await_resume () |
| Resume, move out the value, and release the writer epoch. | |
| 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. | |
| OwningTakeAwaiter (EpochContextWriter< T > &&writer) | |
| Construct from an owning writer. | |
Awaiter that takes and releases a value from an owning writer.
| T | Stored value type. |
|
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, move out the value, and release the writer epoch.
|
inlinenoexcept |
Suspend until the writer epoch becomes writable.
| t | Owning task to suspend and enqueue. |
|
inlinenoexcept |
Returns the epoch context used for exception propagation.