mirror of
https://github.com/wiiu-env/MemoryMappingModule.git
synced 2024-11-25 19:26:54 +01:00
Add memory barrier to ensure memory coherence
This commit is contained in:
parent
9e424205e0
commit
cd56a105e3
@ -416,6 +416,7 @@ void *MemoryMapping_allocEx(uint32_t size, int32_t align, bool videoOnly) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
OSMemoryBarrier();
|
||||||
OSUnlockMutex(&allocMutex);
|
OSUnlockMutex(&allocMutex);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@ -447,6 +448,7 @@ void MemoryMapping_free(void *ptr) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
OSMemoryBarrier();
|
||||||
OSUnlockMutex(&allocMutex);
|
OSUnlockMutex(&allocMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user