TracktionEngine
Public Member Functions | List of all members
tracktion::graph::LockFreeObject< ObjectType >::ScopedRealTimeAccess Class Reference

Helper class to automatically retain/release real time access to an object. More...

Public Member Functions

 ScopedRealTimeAccess (LockFreeObject &lfo)
 Retains real time access to an object. More...
 
 ~ScopedRealTimeAccess ()
 Releases real time access to the object. More...
 
ObjectType * get () const
 Returns a pointer to the object if access was obtained. More...
 

Detailed Description

template<typename ObjectType>
class tracktion::graph::LockFreeObject< ObjectType >::ScopedRealTimeAccess

Helper class to automatically retain/release real time access to an object.

Constructor & Destructor Documentation

◆ ScopedRealTimeAccess()

template<typename ObjectType >
tracktion::graph::LockFreeObject< ObjectType >::ScopedRealTimeAccess::ScopedRealTimeAccess ( LockFreeObject lfo)

Retains real time access to an object.

◆ ~ScopedRealTimeAccess()

template<typename ObjectType >
tracktion::graph::LockFreeObject< ObjectType >::ScopedRealTimeAccess::~ScopedRealTimeAccess ( )

Releases real time access to the object.

References tracktion::graph::LockFreeObject< ObjectType >::releaseRealTime().

Member Function Documentation

◆ get()

template<typename ObjectType >
ObjectType* tracktion::graph::LockFreeObject< ObjectType >::ScopedRealTimeAccess::get ( ) const

Returns a pointer to the object if access was obtained.


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