tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tracktion::core::MultipleWriterSeqLock< T > Class Template Reference

Wraps a seqlock to allow a thread-safe object with wait-free reads with respect to each other. More...

#include "tracktion_MultipleWriterSeqLock.h"

Public Member Functions

 MultipleWriterSeqLock (T t)
 
load () const noexcept
 
bool try_load (T &t) const noexcept
 
void store (T t) noexcept
 

Detailed Description

template<typename T>
class tracktion::core::MultipleWriterSeqLock< T >

Wraps a seqlock to allow a thread-safe object with wait-free reads with respect to each other.

This version also allows multiple threads to write to the object but they will block each other.

Definition at line 23 of file tracktion_MultipleWriterSeqLock.h.

Constructor & Destructor Documentation

◆ MultipleWriterSeqLock()

template<typename T >
tracktion::core::MultipleWriterSeqLock< T >::MultipleWriterSeqLock ( t)

Definition at line 30 of file tracktion_MultipleWriterSeqLock.h.

Member Function Documentation

◆ load()

template<typename T >
T tracktion::core::MultipleWriterSeqLock< T >::load ( ) const
noexcept

Definition at line 38 of file tracktion_MultipleWriterSeqLock.h.

◆ store()

template<typename T >
void tracktion::core::MultipleWriterSeqLock< T >::store ( t)
noexcept

Definition at line 53 of file tracktion_MultipleWriterSeqLock.h.

◆ try_load()

template<typename T >
bool tracktion::core::MultipleWriterSeqLock< T >::try_load ( T &  t) const
noexcept

Definition at line 46 of file tracktion_MultipleWriterSeqLock.h.


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