| 422 | static _Atomic(size_t) thread_count = MI_ATOMIC_VAR_INIT(1); |
| 423 | |
| 424 | size_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` |
| 429 | void mi_thread_init(void) mi_attr_noexcept |