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

Function background_thread_ctl_init

BeefRT/JEMalloc/src/background_thread.c:748–755  ·  view source on GitHub ↗

* When lazy lock is enabled, we need to make sure setting isthreaded before * taking any background_thread locks. This is called early in ctl (instead of * wait for the pthread_create calls to trigger) because the mutex is required * before creating background threads. */

Source from the content-addressed store, hash-verified

746 * before creating background threads.
747 */
748void
749background_thread_ctl_init(tsdn_t *tsdn) {
750 malloc_mutex_assert_not_owner(tsdn, &background_thread_lock);
751#ifdef JEMALLOC_PTHREAD_CREATE_WRAPPER
752 pthread_create_fptr_init();
753 pthread_create_wrapper_init();
754#endif
755}
756
757#endif /* defined(JEMALLOC_BACKGROUND_THREAD) */
758

Callers 4

malloc_init_hardFunction · 0.85
ctl.cFile · 0.85

Calls 3

pthread_create_fptr_initFunction · 0.85

Tested by

no test coverage detected