|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Time bucket structure. More...

Public Member Functions | |
| Bucket ()=default | |
| Bucket (const Bucket &other) | |
| Bucket (Bucket &&other) noexcept | |
| Bucket & | operator= (const Bucket &other) |
| Bucket & | operator= (Bucket &&other) noexcept |
Public Attributes | |
| std::atomic< std::uint64_t > | count {0} |
| std::atomic< std::uint64_t > | timestamp_ms {0} |
Time bucket structure.
Note: Custom constructors are needed because std::atomic is not move/copy constructible by default.
Definition at line 156 of file sliding_window_counter.h.
|
default |
|
inline |
Definition at line 162 of file sliding_window_counter.h.
|
inlinenoexcept |
Definition at line 166 of file sliding_window_counter.h.
|
inlinenoexcept |
Definition at line 180 of file sliding_window_counter.h.
References count, and timestamp_ms.
|
inline |
Definition at line 170 of file sliding_window_counter.h.
References count, and timestamp_ms.
| std::atomic<std::uint64_t> kcenon::thread::metrics::SlidingWindowCounter::Bucket::count {0} |
Definition at line 157 of file sliding_window_counter.h.
Referenced by operator=(), and operator=().
| std::atomic<std::uint64_t> kcenon::thread::metrics::SlidingWindowCounter::Bucket::timestamp_ms {0} |
Definition at line 158 of file sliding_window_counter.h.
Referenced by operator=(), and operator=().