summaryrefslogtreecommitdiff
path: root/deps/jemalloc/include/jemalloc/internal/ticker.h
diff options
context:
space:
mode:
authorGuy Benoish <guy.benoish@redislabs.com>2017-05-09 18:42:32 +0300
committerGuy Benoish <guy.benoish@redislabs.com>2017-05-09 18:42:32 +0300
commit89a9e5a9a2dba7bcdb4ef32fa73f105a14923c1a (patch)
tree4c160d8b97a3792e00a0e2e9ff79ea605371dc1c /deps/jemalloc/include/jemalloc/internal/ticker.h
parent71a8df6a2b6fe37a625636a3902fcc713c7c4919 (diff)
parenta4c7f34d3ab9a182a26d6a6f59f87d253929100d (diff)
downloadredis-89a9e5a9a2dba7bcdb4ef32fa73f105a14923c1a.tar.gz
Merge branch 'unstable' of https://github.com/antirez/redis into unstable
Diffstat (limited to 'deps/jemalloc/include/jemalloc/internal/ticker.h')
-rw-r--r--deps/jemalloc/include/jemalloc/internal/ticker.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/deps/jemalloc/include/jemalloc/internal/ticker.h b/deps/jemalloc/include/jemalloc/internal/ticker.h
deleted file mode 100644
index 4696e56d2..000000000
--- a/deps/jemalloc/include/jemalloc/internal/ticker.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/******************************************************************************/
-#ifdef JEMALLOC_H_TYPES
-
-typedef struct ticker_s ticker_t;
-
-#endif /* JEMALLOC_H_TYPES */
-/******************************************************************************/
-#ifdef JEMALLOC_H_STRUCTS
-
-struct ticker_s {
- int32_t tick;
- int32_t nticks;
-};
-
-#endif /* JEMALLOC_H_STRUCTS */
-/******************************************************************************/
-#ifdef JEMALLOC_H_EXTERNS
-
-#endif /* JEMALLOC_H_EXTERNS */
-/******************************************************************************/
-#ifdef JEMALLOC_H_INLINES
-
-#ifndef JEMALLOC_ENABLE_INLINE
-void ticker_init(ticker_t *ticker, int32_t nticks);
-void ticker_copy(ticker_t *ticker, const ticker_t *other);
-int32_t ticker_read(const ticker_t *ticker);
-bool ticker_ticks(ticker_t *ticker, int32_t nticks);
-bool ticker_tick(ticker_t *ticker);
-#endif
-
-#if (defined(JEMALLOC_ENABLE_INLINE) || defined(JEMALLOC_TICKER_C_))
-JEMALLOC_INLINE void
-ticker_init(ticker_t *ticker, int32_t nticks)
-{
-
- ticker->tick = nticks;
- ticker->nticks = nticks;
-}
-
-JEMALLOC_INLINE void
-ticker_copy(ticker_t *ticker, const ticker_t *other)
-{
-
- *ticker = *other;
-}
-
-JEMALLOC_INLINE int32_t
-ticker_read(const ticker_t *ticker)
-{
-
- return (ticker->tick);
-}
-
-JEMALLOC_INLINE bool
-ticker_ticks(ticker_t *ticker, int32_t nticks)
-{
-
- if (unlikely(ticker->tick < nticks)) {
- ticker->tick = ticker->nticks;
- return (true);
- }
- ticker->tick -= nticks;
- return(false);
-}
-
-JEMALLOC_INLINE bool
-ticker_tick(ticker_t *ticker)
-{
-
- return (ticker_ticks(ticker, 1));
-}
-#endif
-
-#endif /* JEMALLOC_H_INLINES */
-/******************************************************************************/