Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CppCXY/EmmyLuaCodeStyle
/ _mi_is_main_thread
Function
_mi_is_main_thread
3rd/mimalloc-2.0.9/src/init.c:418–420 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
416
417
418
bool _mi_is_main_thread(void) {
419
return (_mi_heap_main.thread_id==0 || _mi_heap_main.thread_id == _mi_thread_id());
420
}
421
422
static _Atomic(size_t) thread_count = MI_ATOMIC_VAR_INIT(1);
423
Callers
5
mi_vfprintf_thread
Function · 0.85
_mi_heap_init
Function · 0.85
_mi_heap_done
Function · 0.85
mi_process_load
Function · 0.85
mi_heap_collect_ex
Function · 0.85
Calls
1
_mi_thread_id
Function · 0.85
Tested by
no test coverage detected