[PR #3987] [MERGED] Kernel.Pthread: Fix default pthread attributes #3848

Closed
opened 2026-02-27 22:05:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3987
Author: @StevenMiller123
Created: 2/2/2026
Status: Merged
Merged: 2/2/2026
Merged by: @georgemoralis

Base: mainHead: thread_attr_defaults


📝 Commits (1)

  • 1907c49 Fix default pthread attributes

📊 Changes

3 files changed (+10 additions, -10 deletions)

View changed files

📝 src/core/libraries/kernel/threads/pthread.cpp (+1 -7)
📝 src/core/libraries/kernel/threads/pthread.h (+6 -0)
📝 src/core/libraries/kernel/threads/pthread_attr.cpp (+3 -3)

📄 Description

Based on cross referencing libkernel decompilation with fpPS4's old code, our default pthread attributes were incorrect.

This fixes a variety of issues in Attack On Titan 2, mostly related to broken audio, as the game refuses to create an audio thread if the game's main thread priority is too low.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3987 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 2/2/2026 **Status:** ✅ Merged **Merged:** 2/2/2026 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `thread_attr_defaults` --- ### 📝 Commits (1) - [`1907c49`](https://github.com/shadps4-emu/shadPS4/commit/1907c49fcf172d1b246911b8b40e73be62901844) Fix default pthread attributes ### 📊 Changes **3 files changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/threads/pthread.cpp` (+1 -7) 📝 `src/core/libraries/kernel/threads/pthread.h` (+6 -0) 📝 `src/core/libraries/kernel/threads/pthread_attr.cpp` (+3 -3) </details> ### 📄 Description Based on cross referencing libkernel decompilation with fpPS4's old code, our default pthread attributes were incorrect. This fixes a variety of issues in Attack On Titan 2, mostly related to broken audio, as the game refuses to create an audio thread if the game's main thread priority is too low. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:05:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3848
No description provided.