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

Function background_threads_disable

deps/jemalloc/src/background_thread.c:640–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640bool
641background_threads_disable(tsd_t *tsd) {
642 assert(!background_thread_enabled());
643 malloc_mutex_assert_owner(tsd_tsdn(tsd), &background_thread_lock);
644
645 /* Thread 0 will be responsible for terminating other threads. */
646 if (background_threads_disable_single(tsd,
647 &background_thread_info[0])) {
648 return true;
649 }
650 assert(n_background_threads == 0);
651
652 return false;
653}
654
655/* Check if we need to signal the background thread early. */
656void

Callers 3

ctl.cFile · 0.70

Calls 4

tsd_tsdnFunction · 0.50

Tested by

no test coverage detected