mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2024-11-22 01:39:20 +01:00
Use the MEM_HEAP_FLAG_USE_LOCK
flag on our custom heap for thread safe operations
This commit is contained in:
parent
3dab586704
commit
d0898430fc
@ -410,7 +410,7 @@ void MemoryMapping_CreateHeaps() {
|
||||
}
|
||||
void *address = (void *) (mem_mapping[i].effective_start_address);
|
||||
uint32_t size = mem_mapping[i].effective_end_address - mem_mapping[i].effective_start_address;
|
||||
MEMCreateExpHeapEx(address, size, 0);
|
||||
MEMCreateExpHeapEx(address, size, MEM_HEAP_FLAG_USE_LOCK);
|
||||
DEBUG_FUNCTION_LINE("Created heap @%08X, size %d KiB", address, size / 1024);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user