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

Function _mi_os_numa_node

3rd/mimalloc-2.0.9/include/mimalloc-internal.h:826–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824
825extern _Atomic(size_t) _mi_numa_node_count;
826static inline int _mi_os_numa_node(mi_os_tld_t* tld) {
827 if mi_likely(mi_atomic_load_relaxed(&_mi_numa_node_count) == 1) { return 0; }
828 else return _mi_os_numa_node_get(tld);
829}
830static inline size_t _mi_os_numa_node_count(void) {
831 const size_t count = mi_atomic_load_relaxed(&_mi_numa_node_count);
832 if mi_likely(count > 0) { return count; }

Callers 5

mi_segment_cache_pop_exFunction · 0.85
_mi_segment_cache_pushFunction · 0.85
mi_region_try_alloc_osFunction · 0.85
mi_region_try_allocFunction · 0.85
_mi_arena_alloc_alignedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected