YACLib
C++ library for concurrent tasks execution
|
#include <atomic_counter.hpp>
Public Member Functions | |
template<typename... Args> | |
AtomicCounter (std::size_t n, Args &&... args) noexcept(std::is_nothrow_constructible_v< CounterBase, Args &&... >) | |
YACLIB_INLINE void | Add (std::size_t delta) noexcept |
YACLIB_INLINE void | Sub (std::size_t delta) noexcept |
std::size_t | GetRef () const noexcept |
YACLIB_INLINE bool | SubEqual (std::size_t n) noexcept |
Public Attributes | |
yaclib_std::atomic_size_t | count |
Definition at line 13 of file atomic_counter.hpp.
|
inlinenoexcept |
Definition at line 15 of file atomic_counter.hpp.
|
inlinenoexcept |
Definition at line 19 of file atomic_counter.hpp.
References yaclib::detail::AtomicCounter< CounterBase, Deleter >::count, and yaclib::MakeContract().
|
inlinenoexcept |
Definition at line 29 of file atomic_counter.hpp.
References yaclib::detail::AtomicCounter< CounterBase, Deleter >::count.
|
inlinenoexcept |
Definition at line 23 of file atomic_counter.hpp.
References yaclib::MakeContract(), and yaclib::detail::AtomicCounter< CounterBase, Deleter >::SubEqual().
|
inlinenoexcept |
Definition at line 34 of file atomic_counter.hpp.
References yaclib::detail::AtomicCounter< CounterBase, Deleter >::count, and yaclib::MakeContract().
Referenced by yaclib::detail::AtomicCounter< CounterBase, Deleter >::Sub().
Definition at line 48 of file atomic_counter.hpp.
Referenced by yaclib::detail::AtomicCounter< CounterBase, Deleter >::Add(), yaclib::detail::AtomicCounter< CounterBase, Deleter >::GetRef(), and yaclib::detail::AtomicCounter< CounterBase, Deleter >::SubEqual().