mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2025-06-12 18:58:21 +02:00
Add memory barrier to ensure memory coherence
This commit is contained in:
@ -416,6 +416,7 @@ void *MemoryMapping_allocEx(uint32_t size, int32_t align, bool videoOnly) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
OSMemoryBarrier();
|
||||
OSUnlockMutex(&allocMutex);
|
||||
return res;
|
||||
}
|
||||
@ -447,6 +448,7 @@ void MemoryMapping_free(void *ptr) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
OSMemoryBarrier();
|
||||
OSUnlockMutex(&allocMutex);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user