|
Uni20
Asynchronous tensor and runtime library.
|
Awaiter returning direct access to a writer's shared storage object. More...
#include <buffers.hpp>
Public Member Functions | |
| bool | await_ready () const noexcept |
| Reports whether the writer epoch is immediately writable. | |
| shared_storage< T > & | await_resume () |
| Resume and return mutable access to shared 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. | |
| StorageAwaiter (EpochContextWriter< T > *writer) | |
| Construct from a non-owning writer pointer. | |
Awaiter returning direct access to a writer's shared storage object.
| 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 return mutable access to shared 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.