MLIR 22.0.0git
mlir::runtime::AsyncValue Struct Reference
Inheritance diagram for mlir::runtime::AsyncValue:

Public Member Functions

 AsyncValue (AsyncRuntime *runtime, int64_t size)

Public Attributes

std::atomic< State::StateEnum > state
std::vector< std::byte > storage
std::mutex mu
std::condition_variable cv
std::vector< std::function< void()> > awaiters

Detailed Description

Definition at line 191 of file AsyncRuntime.cpp.

Constructor & Destructor Documentation

◆ AsyncValue()

mlir::runtime::AsyncValue::AsyncValue ( AsyncRuntime * runtime,
int64_t size )
inline

Definition at line 193 of file AsyncRuntime.cpp.

References state, and storage.

Member Data Documentation

◆ awaiters

std::vector<std::function<void()> > mlir::runtime::AsyncValue::awaiters

◆ cv

std::condition_variable mlir::runtime::AsyncValue::cv

◆ mu

◆ state

◆ storage

std::vector<std::byte> mlir::runtime::AsyncValue::storage

Definition at line 200 of file AsyncRuntime.cpp.

Referenced by AsyncValue(), and mlir::runtime::mlirAsyncRuntimeGetValueStorage().


The documentation for this struct was generated from the following file: