Struct OperatorNodeBase::OprEventCallback

Nested Relationships

This struct is a nested type of Class OperatorNodeBase.

Struct Documentation

struct mgb::cg::OperatorNodeBase::OprEventCallback

struct to specify the callback function pointers for various operator events.

This exists mainly for optimization: if a callback is not needed, related surronding code would not be inserted into execution queue.

Public Types

using cbptr_t = thin_function<void()>

Public Members

Maybe<cbptr_t> on_mem_status_changed

called when memory status changed

Memory status is defined by all layouts and addresses of DEV_VALUE deps and outputs; if any of it changes, this callback would be called before execution