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

Function background_thread_info_init

deps/jemalloc/src/background_thread.c:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69static bool background_thread_enabled_at_fork;
70
71static void
72background_thread_info_init(tsdn_t *tsdn, background_thread_info_t *info) {
73 background_thread_wakeup_time_set(tsdn, info, 0);
74 info->npages_to_purge_new = 0;
75 if (config_stats) {
76 info->tot_n_runs = 0;
77 nstime_init(&info->tot_sleep_time, 0);
78 }
79}
80
81static inline bool
82set_current_thread_affinity(int cpu) {

Callers 3

background_thread_initFunction · 0.70
background_thread_boot1Function · 0.70

Calls 2

nstime_initFunction · 0.70

Tested by

no test coverage detected