mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
[PR #1646] optimize locking mechanism for OSD messages (deadlock-proofing) #600
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/stenzek/duckstation/pull/1646
State: closed
Merged: Yes
Added benefits:
It's always a good idea to implement message queues in the fashion I've done here, to avoid the edge case where a callback GUI function might do something that itself blocks against some other mutex and then poses a risk for deadlock. Since the emulator doesn't really make use of threads much at this point, there's not a lot of immediate tangible benefit to this change. It's really more of an academic change, with potentially some future-proofing qualities.
I also removed some dead code from FullscreenUI. The enumerator handles the
display_show_osd_messagessetting internally now so FullscreenUI didn't need a special case handler anymore.