mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
use size_t instead of uintptr_t where appropiate
This commit is contained in:
parent
28896e5b19
commit
09e59e0610
9 changed files with 86 additions and 86 deletions
|
@ -332,7 +332,7 @@ bool _mi_is_main_thread(void) {
|
|||
return (_mi_heap_main.thread_id==0 || _mi_heap_main.thread_id == _mi_thread_id());
|
||||
}
|
||||
|
||||
static _Atomic(uintptr_t) thread_count = ATOMIC_VAR_INIT(1);
|
||||
static _Atomic(size_t) thread_count = ATOMIC_VAR_INIT(1);
|
||||
|
||||
size_t _mi_current_thread_count(void) {
|
||||
return mi_atomic_load_relaxed(&thread_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue