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

Function mutex_pool_init

deps/jemalloc/src/mutex_pool.c:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "jemalloc/internal/mutex_pool.h"
8
9bool
10mutex_pool_init(mutex_pool_t *pool, const char *name, witness_rank_t rank) {
11 for (int i = 0; i < MUTEX_POOL_SIZE; ++i) {
12 if (malloc_mutex_init(&pool->mutexes[i], name, rank,
13 malloc_mutex_address_ordered)) {
14 return true;
15 }
16 }
17 return false;
18}

Callers 1

extent_bootFunction · 0.70

Calls 1

malloc_mutex_initFunction · 0.70

Tested by

no test coverage detected