mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-28 18:08:25 -05:00
early-access version 3014
This commit is contained in:
parent
971fac7f75
commit
995898bca4
@ -1,7 +1,7 @@
|
||||
yuzu emulator early access
|
||||
=============
|
||||
|
||||
This is the source code for early-access 3013.
|
||||
This is the source code for early-access 3014.
|
||||
|
||||
## Legal Notice
|
||||
|
||||
|
@ -36,7 +36,17 @@ SyncpointManager::ActionHandle SyncpointManager::RegisterAction(
|
||||
void SyncpointManager::DeregisterAction(std::list<RegisteredAction>& action_storage,
|
||||
ActionHandle& handle) {
|
||||
std::unique_lock lk(guard);
|
||||
action_storage.erase(handle);
|
||||
|
||||
// We want to ensure the iterator still exists prior to erasing it
|
||||
// Otherwise, if an invalid iterator was passed in then it could lead to UB
|
||||
// It is important to avoid UB in that case since the deregister isn't called from a locked
|
||||
// context
|
||||
for (auto it = action_storage.begin(); it != action_storage.end(); it++) {
|
||||
if (it == handle) {
|
||||
action_storage.erase(it);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SyncpointManager::DeregisterGuestAction(u32 syncpoint_id, ActionHandle& handle) {
|
||||
|
Loading…
Reference in New Issue
Block a user