diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
| commit | dcacc00e3750300617ba6e16eb346713f91a783a (patch) | |
| tree | 38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/deps/jemalloc/src/counter.c | |
| parent | 58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff) | |
| download | crep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz | |
Remove testing data
Diffstat (limited to 'examples/redis-unstable/deps/jemalloc/src/counter.c')
| -rw-r--r-- | examples/redis-unstable/deps/jemalloc/src/counter.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/examples/redis-unstable/deps/jemalloc/src/counter.c b/examples/redis-unstable/deps/jemalloc/src/counter.c deleted file mode 100644 index 8f1ae3a..0000000 --- a/examples/redis-unstable/deps/jemalloc/src/counter.c +++ /dev/null @@ -1,30 +0,0 @@ -#include "jemalloc/internal/jemalloc_preamble.h" -#include "jemalloc/internal/jemalloc_internal_includes.h" - -#include "jemalloc/internal/counter.h" - -bool -counter_accum_init(counter_accum_t *counter, uint64_t interval) { - if (LOCKEDINT_MTX_INIT(counter->mtx, "counter_accum", - WITNESS_RANK_COUNTER_ACCUM, malloc_mutex_rank_exclusive)) { - return true; - } - locked_init_u64_unsynchronized(&counter->accumbytes, 0); - counter->interval = interval; - return false; -} - -void -counter_prefork(tsdn_t *tsdn, counter_accum_t *counter) { - LOCKEDINT_MTX_PREFORK(tsdn, counter->mtx); -} - -void -counter_postfork_parent(tsdn_t *tsdn, counter_accum_t *counter) { - LOCKEDINT_MTX_POSTFORK_PARENT(tsdn, counter->mtx); -} - -void -counter_postfork_child(tsdn_t *tsdn, counter_accum_t *counter) { - LOCKEDINT_MTX_POSTFORK_CHILD(tsdn, counter->mtx); -} |
