Class anira::InitInfo#

class InitInfo#

Collaboration diagram for anira::InitInfo:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "1" [label="anira::InitInfo" tooltip="anira::InitInfo" fillcolor="#BFBFBF"]
    "2" [label="anira_init_info" tooltip="anira_init_info"]
    "1" -> "2" [dir=forward tooltip="usage"]
}

The record a Processor’s or an Engine’s init receives, anira_init_info of anira/abi/lifecycle.h as views: the facts of the core in effect when the registration is first used, and the context it is used under. Valid for the duration of init.

Public Functions

inline explicit InitInfo(const anira_init_info *info) noexcept#
inline anira_log_level log_level() const noexcept#

The level in effect in this copy of anira (the core reconciles one per process).

inline uint32_t num_threads() const noexcept#

The size of the inference-thread pool this copy of anira runs; 0 when the context brought its own threads or on a target without threads.

inline const anira_context *context() const noexcept#

The context of the handler whose prepare reached the registration first: its capabilities are legal to query; valid until init returns, never kept.

inline const anira_init_info *native() const noexcept#