[PR #290] [MERGED] Fix pthread deprecation warnings #1456

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/290
Author: @jas0n098
Created: 7/12/2024
Status: Merged
Merged: 7/15/2024
Merged by: @raphaelthegreat

Base: mainHead: main


📝 Commits (1)

  • da6881a Replace deprecated pthread functions

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 src/core/libraries/kernel/thread_management.cpp (+6 -2)

📄 Description

pthread_attr_(set,get)stackaddr are marked as deprecated in glibc and musl libc doesn't implement them, causing build failures. pthread_attr_(set,get)stack was used to replace them, as recommended by pthread docs.
While I haven't observed any games break that I have, it might still be a good idea to test this before merging.


🔄 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/290 **Author:** [@jas0n098](https://github.com/jas0n098) **Created:** 7/12/2024 **Status:** ✅ Merged **Merged:** 7/15/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`da6881a`](https://github.com/shadps4-emu/shadPS4/commit/da6881a43500c8ff9ab232b263f0ad1b2867e446) Replace deprecated pthread functions ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/thread_management.cpp` (+6 -2) </details> ### 📄 Description pthread_attr_(set,get)stackaddr are marked as deprecated in glibc and musl libc doesn't implement them, causing build failures. pthread_attr_(set,get)stack was used to replace them, as recommended by pthread docs. While I haven't observed any games break that I have, it might still be a good idea to test this before merging. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:12:37 +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#1456
No description provided.