35 #ifndef BITPOOL_HEADER_ 36 #define BITPOOL_HEADER_ 73 std::uint64_t
get(std::uint64_t u64Request,
bool bFullFill =
true);
96 std::uint64_t u64MaxSize_;
98 std::uint64_t u64CurrentSize_;
102 float fFillRemainder_;
111 void doFillPool(
const TimePoint & requestTime);
123 std::uint64_t doDrainPool(std::uint64_t u64Request,
132 #endif // BITPOOL_HEADER_
Implementation of a rate limiting bit pool.
BitPool(PlatformServiceProvider *pPlatformService, NEMId id)
void setMaxSize(std::uint64_t u64NewSize)
std::chrono::microseconds Microseconds
std::uint64_t getCurrentSize()
Clock::time_point TimePoint