Struct anira::v2::Context#
-
struct Context#
The 2.x static face of the core (v2.3.0’s anira::Context), over the core entries. The rest of the 2.x class (the inference threads of the host, the session list) is not declared: a host drives its own threads through anira_inference_thread_create on a context.
Public Static Functions
-
static inline anira_status shutdown() noexcept#
anira_shutdown: ANIRA_ERROR_INVALID_STATE while a context or a handler lives, which through this header means while an InferenceHandler lives (2.x stopped the pool regardless).
-
static inline bool release_core_if_idle() noexcept#
anira_release_core_if_idle: true when the core was freed.
-
static inline bool has_core() noexcept#
-
static inline unsigned get_num_inference_threads() noexcept#
The size of the core’s inference thread pool: 0 until the first handler is prepared (the core builds the pool then); the host’s own threads are not counted.
-
static inline size_t drain_log() noexcept#
anira_drain_log: delivers the queued real-time records to the sinks.
-
static inline anira_status shutdown() noexcept#