diff options
| author | Jason Evans <jasone@canonware.com> | 2017-06-08 22:07:21 -0700 |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2017-06-08 23:01:26 -0700 |
| commit | 13685ab1b767091d817cb4959d24a42447a6fb78 (patch) | |
| tree | 4c525ec74897111cb8adae6ab7f3f426c85fa356 /src/background_thread.c | |
| parent | 94d655b8bd1eac3d969dfe3c15aa7a6b1d26373d (diff) | |
| download | platform_external_jemalloc_new-13685ab1b767091d817cb4959d24a42447a6fb78.tar.gz platform_external_jemalloc_new-13685ab1b767091d817cb4959d24a42447a6fb78.tar.bz2 platform_external_jemalloc_new-13685ab1b767091d817cb4959d24a42447a6fb78.zip | |
Normalize background thread configuration.
Also fix a compilation error #ifndef JEMALLOC_PTHREAD_CREATE_WRAPPER.
Diffstat (limited to 'src/background_thread.c')
| -rw-r--r-- | src/background_thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/background_thread.c b/src/background_thread.c index 190fa2fd..51d23cb9 100644 --- a/src/background_thread.c +++ b/src/background_thread.c @@ -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) */ |
