MCPcopy Create free account
hub / github.com/beefytech/Beef / background_thread_boot0

Function background_thread_boot0

BeefRT/JEMalloc/src/background_thread.c:759–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757#endif /* defined(JEMALLOC_BACKGROUND_THREAD) */
758
759bool
760background_thread_boot0(void) {
761 if (!have_background_thread && opt_background_thread) {
762 malloc_printf("<jemalloc>: option background_thread currently "
763 "supports pthread only\n");
764 return true;
765 }
766#ifdef JEMALLOC_PTHREAD_CREATE_WRAPPER
767 if ((config_lazy_lock || opt_background_thread) &&
768 pthread_create_fptr_init()) {
769 return true;
770 }
771#endif
772 return false;
773}
774
775bool
776background_thread_boot1(tsdn_t *tsdn, base_t *base) {

Callers 1

Calls 2

malloc_printfFunction · 0.85
pthread_create_fptr_initFunction · 0.85

Tested by

no test coverage detected