Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
RealtimeProperty< T > Class Template Reference

Template class for real-time safe property updates between threads. More...

#include <src/gui/backend/realtime_property.h>

Inheritance diagram for RealtimeProperty< T >:
Collaboration diagram for RealtimeProperty< T >:

Public Member Functions

 RealtimeProperty (T initial=T{})
void setRT (const T &newValue)
getRT () const
get () const
void set (const T &newValue)
bool processUpdates () override
 Process pending updates from real-time thread.

Detailed Description

template<typename T>
class RealtimeProperty< T >

Template class for real-time safe property updates between threads.

Provides atomic updates with separate main thread and real-time thread values.

Definition at line 29 of file realtime_property.h.

Constructor & Destructor Documentation

◆ RealtimeProperty()

template<typename T>
RealtimeProperty< T >::RealtimeProperty ( T initial = T{})
inline

Definition at line 32 of file realtime_property.h.

Member Function Documentation

◆ get()

template<typename T>
T RealtimeProperty< T >::get ( ) const
inline

Definition at line 45 of file realtime_property.h.

◆ getRT()

template<typename T>
T RealtimeProperty< T >::getRT ( ) const
inline

Definition at line 42 of file realtime_property.h.

◆ processUpdates()

template<typename T>
bool RealtimeProperty< T >::processUpdates ( )
inlineoverridevirtual

Process pending updates from real-time thread.

Returns
true if updates were processed

Implements IRealtimeProperty.

Definition at line 55 of file realtime_property.h.

◆ set()

template<typename T>
void RealtimeProperty< T >::set ( const T & newValue)
inline

Definition at line 48 of file realtime_property.h.

◆ setRT()

template<typename T>
void RealtimeProperty< T >::setRT ( const T & newValue)
inline

Definition at line 35 of file realtime_property.h.


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