|
Uni20
Asynchronous tensor and runtime library.
|
Awaiter that takes the writer value without releasing the writer epoch. More...
#include <buffers.hpp>
Public Member Functions | |
| bool | await_ready () const noexcept |
| Reports whether the writer epoch is immediately writable. | |
| T | await_resume () |
| Resume and move the stored value out of writer storage. | |
| 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. | |
| TakeAwaiter (EpochContextWriter< T > *writer) | |
| Construct from a non-owning writer pointer. | |
Awaiter that takes the writer value without releasing the writer epoch.
| T | Stored value type. |
|
inline |
Construct from a non-owning writer pointer.
| writer | Writer handle owned by the parent WriteBuffer. |
|
inlinenoexcept |
Reports whether the writer epoch is immediately writable.
true when no suspension is needed.
|
inline |
Resume and move the stored value out of writer storage.
|
inlinenoexcept |
Suspend until the writer epoch becomes writable.
| t | Owning task to suspend and enqueue. |
|
inlinenoexcept |
Returns the epoch context used for exception propagation.