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

Function prof_thread_active_init_get

deps/jemalloc/src/prof.c:2877–2885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2875}
2876
2877bool
2878prof_thread_active_init_get(tsdn_t *tsdn) {
2879 bool active_init;
2880
2881 malloc_mutex_lock(tsdn, &prof_thread_active_init_mtx);
2882 active_init = prof_thread_active_init;
2883 malloc_mutex_unlock(tsdn, &prof_thread_active_init_mtx);
2884 return active_init;
2885}
2886
2887bool
2888prof_thread_active_init_set(tsdn_t *tsdn, bool active_init) {

Callers 2

prof_tdata_initFunction · 0.70

Calls 2

malloc_mutex_lockFunction · 0.50
malloc_mutex_unlockFunction · 0.50

Tested by

no test coverage detected