Normalize background thread configuration.

Also fix a compilation error #ifndef JEMALLOC_PTHREAD_CREATE_WRAPPER.
This commit is contained in:
Jason Evans
2017-06-08 22:07:21 -07:00
parent 94d655b8bd
commit 13685ab1b7
4 changed files with 17 additions and 6 deletions

View File

@@ -635,7 +635,9 @@ background_thread_stats_read(tsdn_t *tsdn, background_thread_stats_t *stats) {
void
background_thread_ctl_init(tsdn_t *tsdn) {
malloc_mutex_assert_not_owner(tsdn, &background_thread_lock);
#ifdef JEMALLOC_PTHREAD_CREATE_WRAPPER
pthread_once(&once_control, pthread_create_wrapper_once);
#endif
}
#endif /* defined(JEMALLOC_BACKGROUND_THREAD) */