mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-19 19:36:33 +03:00
Set isthreaded when enabling background_thread.
This commit is contained in:
parent
c84ec3e9da
commit
340071f0cf
3 changed files with 41 additions and 23 deletions
|
|
@ -1499,6 +1499,7 @@ background_thread_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
|
|||
if (!have_background_thread) {
|
||||
return ENOENT;
|
||||
}
|
||||
background_thread_ctl_init(tsd_tsdn(tsd));
|
||||
|
||||
malloc_mutex_lock(tsd_tsdn(tsd), &background_thread_lock);
|
||||
if (newp == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue