libASPL
|
Common object context. Shared between objects which belong to the same driver. More...
#include <aspl/Context.hpp>
Public Member Functions | |
Context (std::shared_ptr< aspl::Tracer > tracer={}, std::shared_ptr< aspl::Dispatcher > dispatcher={}) | |
Create context. If dispatcher or tracer is not specified, default one is created. Default tracer sends output to syslog. | |
Public Attributes | |
const std::shared_ptr< Dispatcher > | Dispatcher |
Object dispatcher. Maps object identifiers to objects. Object ID is unique within a dispatcher. | |
const std::shared_ptr< Tracer > | Tracer |
Object operation tracer. All objects use it for logging. | |
std::atomic< AudioServerPlugInHostRef > | Host = nullptr |
Plugin host. Contains method table of HAL. Initially host is null. It is set during plugin initialization. | |
Common object context. Shared between objects which belong to the same driver.
Definition at line 21 of file Context.hpp.
|
inlineexplicit |
Create context. If dispatcher or tracer is not specified, default one is created. Default tracer sends output to syslog.
Definition at line 40 of file Context.hpp.
const std::shared_ptr<Dispatcher> aspl::Context::Dispatcher |
Object dispatcher. Maps object identifiers to objects. Object ID is unique within a dispatcher.
Definition at line 26 of file Context.hpp.
std::atomic<AudioServerPlugInHostRef> aspl::Context::Host = nullptr |
Plugin host. Contains method table of HAL. Initially host is null. It is set during plugin initialization.
Definition at line 35 of file Context.hpp.
const std::shared_ptr<Tracer> aspl::Context::Tracer |
Object operation tracer. All objects use it for logging.
Definition at line 30 of file Context.hpp.