 |
SWC-DB
v0.5.11 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_core_CompletionCounter_h
7 #define swcdb_core_CompletionCounter_h
13 namespace SWC {
namespace Core {
15 template<
class CountT=u
int32_t>
20 : Core::
Atomic<CountT>(start) {
62 #endif // swcdb_core_CompletionCounter_h
constexpr SWC_CAN_INLINE CompletionCounter(CountT start=0) noexcept
CompletionCounter(const CompletionCounter &)=delete
constexpr SWC_CAN_INLINE T sub_rslt(T v) noexcept
constexpr SWC_CAN_INLINE T add_rslt(T v) noexcept
The SWC-DB C++ namespace 'SWC'.
CompletionCounter(const CompletionCounter &&)=delete
constexpr SWC_CAN_INLINE CountT count() const noexcept
constexpr SWC_CAN_INLINE void increment(CountT v=1) noexcept
constexpr SWC_CAN_INLINE T load() const noexcept
CompletionCounter & operator=(const CompletionCounter &)=delete
constexpr SWC_CAN_INLINE bool is_last() noexcept
~CompletionCounter() noexcept
constexpr SWC_CAN_INLINE T fetch_sub(T v) noexcept
constexpr SWC_CAN_INLINE T fetch_add(T v) noexcept
constexpr SWC_CAN_INLINE CountT decrement_and_count() noexcept
constexpr SWC_CAN_INLINE CountT increment_and_count() noexcept