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/posix/pthread: Add pthread_attr_getstack and pthread_attr_setstack #20934

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

LasseRosenow
Copy link
Contributor

Contribution description

This adds the missing pthread_attr_setstack and pthread_attr_getstack functions to the posix-pthread wrappers.

Motivation

'pthread_attr_setstackaddr' and pthread_attr_getstackaddr are deprecated and it is recommended to use use pthread_attr_getstack and pthread_attr_setstack instead.

@github-actions github-actions bot added the Area: sys Area: System label Oct 22, 2024
@LasseRosenow
Copy link
Contributor Author

LasseRosenow commented Oct 29, 2024

Okay I have updated the code to just internally use the existing pthread_attr_getstackaddr, pthread_attr_getstacksize, pthread_attr_setstackaddr and pthread_attr_setstacksize functions.
I think this is more reasonable

Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed a much simpler addition now and avoids code duplication.

Please squash!

@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 29, 2024
@LasseRosenow
Copy link
Contributor Author

Done :)

@riot-ci
Copy link

riot-ci commented Oct 29, 2024

Murdock results

✔️ PASSED

459b8dc sys/posix/pthread: Add pthread_attr_getstack and pthread_attr_setstack

Success Failures Total Runtime
10215 0 10215 17m:12s

Artifacts

@benpicco benpicco added this pull request to the merge queue Oct 29, 2024
Merged via the queue into RIOT-OS:master with commit 1fc9d1b Oct 29, 2024
25 checks passed
@LasseRosenow LasseRosenow deleted the pthread-attr-setstack branch October 30, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants