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

Function _mi_current_thread_count

3rd/mimalloc-2.0.9/src/init.c:424–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422static _Atomic(size_t) thread_count = MI_ATOMIC_VAR_INIT(1);
423
424size_t _mi_current_thread_count(void) {
425 return mi_atomic_load_relaxed(&thread_count);
426}
427
428// This is called from the `mi_malloc_generic`
429void mi_thread_init(void) mi_attr_noexcept

Callers 1

mi_segment_allocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected