mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #3490] [MERGED] semaphore: Fix determining wait status when canceled/deleted #3512
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3512
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3490
Author: @squidbus
Created: 8/31/2025
Status: ✅ Merged
Merged: 8/31/2025
Merged by: @squidbus
Base:
main← Head:fix-sem-delete📝 Commits (1)
025e8a2semaphore: Fix determining wait status when canceled/deleted📊 Changes
1 file changed (+37 additions, -37 deletions)
View changed files
📝
src/core/libraries/kernel/threads/semaphore.cpp(+37 -37)📄 Description
Current logic for determining the result will always return
ETIMEDOUTwhen not signaled, which causes the canceled and deleted statuses to get lost. In turn this can cause the mainWaitfunction to erroneously try to remove the waiter from the wait list when it already has been and/or the semaphore has already been deleted.Fix up the logic to make sure that these statuses are not ignored. Also, clean up some types to follow our standard here and fix a typo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.