MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ticker_trytick

Function ticker_trytick

deps/jemalloc/include/jemalloc/internal/ticker.h:82–89  ·  view source on GitHub ↗

* Try to tick. If ticker would fire, return true, but rely on * slowpath to reset ticker. */

Source from the content-addressed store, hash-verified

80 * slowpath to reset ticker.
81 */
82static inline bool
83ticker_trytick(ticker_t *ticker) {
84 --ticker->tick;
85 if (unlikely(ticker->tick < 0)) {
86 return true;
87 }
88 return false;
89}
90
91#endif /* JEMALLOC_INTERNAL_TICKER_H */

Callers 2

JEMALLOC_ATTRFunction · 0.85
free_fastpathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected