Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys_cond_wait: Wait for rescheduling before relocking #6405

Merged
merged 2 commits into from
Aug 27, 2019

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Aug 25, 2019

Wait for the thread to be scheduled before relocking the mutex, this matches with the kernel because it needs to be reschedulef before taking any action.
Can solve potential deadlocks whenever the waiting thread is still waiting for the scheduler yet other threads attempting to acquire the mutex.

Edit: it is also required for accurate ETIMEOUT checking, as on ps3 kernel the waiting thread needs to confirm condition not met after the amount of time specified, which means it needs to be scheduled beforehead.

@arcadee1977
Copy link

arcadee1977 commented Aug 27, 2019

@elad335 This PR(6405) is huge retrogression ! Dynasty warriors:Gundam Reborn[NPUB31531] & Gundam breaker 2[BLAS50770] are freezing ,can not ingame. And no any error message! Other games haven't been tried yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants