folly::TokenBucketPolicyDefault

Default policy for the token bucket templates, selecting the alignment, atomic type, clock, and concurrency behavior.

Synopsis

Declared in <folly/TokenBucket.h>

struct TokenBucketPolicyDefault;

Type Aliases

NameDescription
align Alignment used for the atomic state, sized to avoid false sharing.
atom Atomic wrapper used to store the token bucket state.
clock Steady clock used as the default time source.
concurrent Whether the bucket must be safe for concurrent access.