TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ARAFactoryInitGuard Struct Reference

RAII guard that ref-counts initializeARA/uninitializeARA calls per unique ARAFactory pointer. More...

#include <tracktion_ARAPluginFactory.h>

Public Member Functions

 ARAFactoryInitGuard (const ARAFactory *f, const ARAInterfaceConfiguration *config)
 
 ~ARAFactoryInitGuard ()
 

Public Attributes

const ARAFactory * factoryPtr
 

Detailed Description

RAII guard that ref-counts initializeARA/uninitializeARA calls per unique ARAFactory pointer.

Multiple ARAPluginFactory entries may share the same underlying ARAFactory* (same DLL); this ensures initializeARA is called once on first use and uninitializeARA once on last destruction.

Constructor & Destructor Documentation

◆ ARAFactoryInitGuard()

ARAFactoryInitGuard::ARAFactoryInitGuard ( const ARAFactory *  f,
const ARAInterfaceConfiguration *  config 
)

References factoryPtr.

◆ ~ARAFactoryInitGuard()

ARAFactoryInitGuard::~ARAFactoryInitGuard ( )

References factoryPtr.

Member Data Documentation

◆ factoryPtr

const ARAFactory* ARAFactoryInitGuard::factoryPtr

The documentation for this struct was generated from the following file: