Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
token_bucket.cpp File Reference

Implementation of lock-free token bucket rate limiter. More...

#include <kcenon/thread/core/token_bucket.h>
#include <algorithm>
#include <thread>
Include dependency graph for token_bucket.cpp:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::thread
 Core threading foundation of the thread system library.
 

Detailed Description

Implementation of lock-free token bucket rate limiter.

This file contains the implementation of the token_bucket class, which provides a lock-free rate limiting mechanism using the token bucket algorithm with continuous refill.

Definition in file token_bucket.cpp.