Struct anira::InferenceData

struct InferenceData

Data structure for passing inference requests between threads.

The InferenceData struct encapsulates all information needed to perform an inference operation, including the session context and the specific thread-safe data structure containing the input/output buffers.

This structure is designed for efficient passing through lock-free concurrent queues and enables decoupled processing between audio threads and inference threads.

Note

This struct uses shared pointers to ensure safe memory management across multiple threads and to avoid data copying overhead.

Public Members

std::shared_ptr<SessionElement> m_session

Shared pointer to the session that owns this inference request.

std::shared_ptr<SessionElement::ThreadSafeStruct> m_thread_safe_struct

Shared pointer to the thread-safe data structure containing buffers and synchronization.