MLIR  19.0.0git
Public Member Functions | Public Attributes | List of all members
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.

Member Data Documentation

◆ awaiters

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

◆ cv

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

Definition at line 204 of file AsyncRuntime.cpp.

Referenced by mlir::runtime::mlirAsyncRuntimeAwaitValue().

◆ mu

std::mutex mlir::runtime::AsyncValue::mu

◆ state

std::atomic<State::StateEnum> mlir::runtime::AsyncValue::state

◆ storage

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

Definition at line 200 of file AsyncRuntime.cpp.

Referenced by mlir::runtime::mlirAsyncRuntimeGetValueStorage().


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