mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 01:52:15 +00:00
* Initial implementation, fixedttl w/ leaky seems to work so far * Port things to macros to save proc overheads * Pain * Pain * More work * More work * Added high and low watermark vars * *sigh * Final implementation and unit tests * Changelog, recomment MUT * I hate the linter * Prefer this? * bnkjbn * sdf * NON-WORKING test * sdfgds * nikjk * dsfsfg * dfghsdh * Stupid linter * ??? * wtf * me dumb?
10 lines
490 B
Plaintext
10 lines
490 B
Plaintext
///The source of the time to base the tokens calculations off
|
|
#define STB_REALTIMESOURCE world.timeofday
|
|
|
|
///All tokens have the same lifetime, set on the bucket
|
|
#define STB_MODE_FIXEDTTL BITFLAG(1)
|
|
///Each token can specify a different lifetime
|
|
#define STB_MODE_VARIABLETTL BITFLAG(2)
|
|
///Used to indicate that each token must expire on its own timer, rather than wait for the next operation on the bucket or the last token to expire to do something
|
|
#define STB_FLAG_LEAKYBUCKET BITFLAG(1)
|