MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_vfprintf_thread

Function mi_vfprintf_thread

3rd/mimalloc-2.0.9/src/options.c:361–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361static void mi_vfprintf_thread(mi_output_fun* out, void* arg, const char* prefix, const char* fmt, va_list args) {
362 if (prefix != NULL && strlen(prefix) <= 32 && !_mi_is_main_thread()) {
363 char tprefix[64];
364 snprintf(tprefix, sizeof(tprefix), "%sthread 0x%llx: ", prefix, (unsigned long long)_mi_thread_id());
365 mi_vfprintf(out, arg, tprefix, fmt, args);
366 }
367 else {
368 mi_vfprintf(out, arg, prefix, fmt, args);
369 }
370}
371
372void _mi_trace_message(const char* fmt, ...) {
373 if (mi_option_get(mi_option_verbose) <= 1) return; // only with verbose level 2 or higher

Callers 3

_mi_trace_messageFunction · 0.85
mi_show_error_messageFunction · 0.85
_mi_warning_messageFunction · 0.85

Calls 3

_mi_is_main_threadFunction · 0.85
_mi_thread_idFunction · 0.85
mi_vfprintfFunction · 0.85

Tested by

no test coverage detected