Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
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... | |
roc::core::SeqlockImpl::SeqlockImpl | ( | ) |
Initialize.
void roc::core::SeqlockImpl::exclusive_store | ( | seqlock_version_t & | ver, |
void * | current_value, | ||
size_t | value_size, | ||
const void * | new_value | ||
) |
Store value.
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.
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.
seqlock_version_t roc::core::SeqlockImpl::version | ( | ) | const |
Load value version.
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.