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

Function mutex_prof_data_init

deps/jemalloc/src/mutex.c:104–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static void
105mutex_prof_data_init(mutex_prof_data_t *data) {
106 memset(data, 0, sizeof(mutex_prof_data_t));
107 nstime_init(&data->max_wait_time, 0);
108 nstime_init(&data->tot_wait_time, 0);
109 data->prev_owner = NULL;
110}
111
112void
113malloc_mutex_prof_data_reset(tsdn_t *tsdn, malloc_mutex_t *mutex) {

Callers 2

malloc_mutex_initFunction · 0.70

Calls 1

nstime_initFunction · 0.70

Tested by

no test coverage detected