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

Function check_background_thread_enabled

deps/jemalloc/test/unit/decay.c:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10static bool monotonic_mock;
11
12static bool
13check_background_thread_enabled(void) {
14 bool enabled;
15 size_t sz = sizeof(bool);
16 int ret = mallctl("background_thread", (void *)&enabled, &sz, NULL,0);
17 if (ret == ENOENT) {
18 return false;
19 }
20 assert_d_eq(ret, 0, "Unexpected mallctl error");
21 return enabled;
22}
23
24static bool
25nstime_monotonic_mock(void) {

Callers 2

decay.cFile · 0.70
TEST_BEGINFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected