move thread init to primitives

This commit is contained in:
Daan Leijen 2023-03-15 13:35:23 -07:00
parent 973268bf1e
commit 9a2dbf373e
6 changed files with 149 additions and 63 deletions

View file

@ -75,7 +75,8 @@ bool _mi_is_main_thread(void);
size_t _mi_current_thread_count(void);
bool _mi_preloading(void); // true while the C runtime is not ready
mi_threadid_t _mi_thread_id(void) mi_attr_noexcept;
mi_heap_t* _mi_heap_main_get(void); // statically allocated main backing heap
mi_heap_t* _mi_heap_main_get(void); // statically allocated main backing heap
void _mi_thread_done(mi_heap_t* heap);
// os.c
size_t _mi_os_page_size(void);