From 5744f90882df3ed31c5781f93c8901e57696d13e Mon Sep 17 00:00:00 2001 From: daan Date: Tue, 17 Sep 2019 17:35:20 -0700 Subject: [PATCH] remove thread init/done verbose messages --- src/init.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/init.c b/src/init.c index 3d9b4842..5ab39c28 100644 --- a/src/init.c +++ b/src/init.c @@ -352,9 +352,7 @@ void mi_thread_init(void) mi_attr_noexcept pthread_setspecific(mi_pthread_key, (void*)(_mi_thread_id()|1)); // set to a dummy value so that `mi_pthread_done` is called #endif - #if (MI_DEBUG>0 && !defined(_WIN32)) - _mi_verbose_message("thread init: 0x%zx\n", _mi_thread_id()); - #endif + //_mi_verbose_message("thread init: 0x%zx\n", _mi_thread_id()); } void mi_thread_done(void) mi_attr_noexcept { @@ -367,11 +365,9 @@ void mi_thread_done(void) mi_attr_noexcept { // abandon the thread local heap if (_mi_heap_done()) return; // returns true if already ran - #if (MI_DEBUG>0 && !defined(_WIN32)) - if (!_mi_is_main_thread()) { - _mi_verbose_message("thread done: 0x%zx\n", _mi_thread_id()); - } - #endif + //if (!_mi_is_main_thread()) { + // _mi_verbose_message("thread done: 0x%zx\n", _mi_thread_id()); + //} }