Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::SeqlockImpl Class Reference

Seqlock implementation class. More...

#include <seqlock_impl.h>

Public Member Functions

 SeqlockImpl ()
 Initialize. More...
 
seqlock_version_t version () const
 Load value version. More...
 
bool try_store (seqlock_version_t &ver, void *current_value, size_t value_size, const void *new_value)
 Try to store value. More...
 
void exclusive_store (seqlock_version_t &ver, void *current_value, size_t value_size, const void *new_value)
 Store value. More...
 
bool try_load_repeat (seqlock_version_t &ver, const void *current_value, size_t value_size, void *return_value) const
 Try to load value and version. More...
 
void wait_load (seqlock_version_t &ver, const void *current_value, size_t value_size, void *return_value) const
 Load value and version. More...
 

Detailed Description

Seqlock implementation class.

See also
Seqlock.

Definition at line 34 of file seqlock_impl.h.

Constructor & Destructor Documentation

◆ SeqlockImpl()

roc::core::SeqlockImpl::SeqlockImpl ( )

Initialize.

Member Function Documentation

◆ exclusive_store()

void roc::core::SeqlockImpl::exclusive_store ( seqlock_version_t ver,
void *  current_value,
size_t  value_size,
const void *  new_value 
)

Store value.

◆ try_load_repeat()

bool roc::core::SeqlockImpl::try_load_repeat ( seqlock_version_t ver,
const void *  current_value,
size_t  value_size,
void *  return_value 
) const

Try to load value and version.

◆ try_store()

bool roc::core::SeqlockImpl::try_store ( seqlock_version_t ver,
void *  current_value,
size_t  value_size,
const void *  new_value 
)

Try to store value.

◆ version()

seqlock_version_t roc::core::SeqlockImpl::version ( ) const

Load value version.

◆ wait_load()

void roc::core::SeqlockImpl::wait_load ( seqlock_version_t ver,
const void *  current_value,
size_t  value_size,
void *  return_value 
) const

Load value and version.


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