bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
bux::C_SpinCacheT< T_Key, T_Value, YIELD_BEFORE_RETRY > Class Template Reference

#include <AtomiX.h>

Public Member Functions

template<class T_KeyIn , class F >
requires std::constructible_from<T_Key,T_KeyIn> && std::invocable<F,T_Value&>
const T_Value & operator() (T_KeyIn key, F set_value)
 
auto size () const
 

Detailed Description

template<typename T_Key, typename T_Value, bool YIELD_BEFORE_RETRY = false>
class bux::C_SpinCacheT< T_Key, T_Value, YIELD_BEFORE_RETRY >
Examples
test/test_atomix.cpp.

Definition at line 30 of file AtomiX.h.

Member Function Documentation

◆ operator()()

template<typename T_Key , typename T_Value , bool YIELD_BEFORE_RETRY = false>
template<class T_KeyIn , class F >
requires std::constructible_from<T_Key,T_KeyIn> && std::invocable<F,T_Value&>
const T_Value & bux::C_SpinCacheT< T_Key, T_Value, YIELD_BEFORE_RETRY >::operator() ( T_KeyIn key,
F set_value )
inline

Definition at line 36 of file AtomiX.h.

◆ size()

template<typename T_Key , typename T_Value , bool YIELD_BEFORE_RETRY = false>
auto bux::C_SpinCacheT< T_Key, T_Value, YIELD_BEFORE_RETRY >::size ( ) const
inline
Examples
test/test_atomix.cpp.

Definition at line 55 of file AtomiX.h.


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