mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #327] [MERGED] semaphore: Yet another race condition fix #1485
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#1485
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/327
Author: @raphaelthegreat
Created: 7/26/2024
Status: ✅ Merged
Merged: 7/27/2024
Merged by: @raphaelthegreat
Base:
main← Head:sem-race📝 Commits (1)
2bea573semaphore: Yet another race condition fix📊 Changes
1 file changed (+1 additions, -4 deletions)
View changed files
📝
src/core/libraries/kernel/threads/semaphore.cpp(+1 -4)📄 Description
The waiting thread object could be destructed before the scoped lock would go out of scope leaving the mutex in an undefined state. With this change we use the global lock for sleeping threads. This means that if a Signal call wakes up multiple threads, the threads will wait until the Signal is done before waking up
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.