Skip to content

Call key creation before checking if a thread is FreeRTOS thread #1238

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

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

kar-rahul-aws
Copy link
Member

Description

Prevent application hangs that occur when a thread calls prvIsFreeRTOSThread before initializing the key. This is achieved by adding a call to prvInitThreadKey() in prvIsFreeRTOSThread() before the key is retrieved.

Test Steps

Was tested by @denravonska

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

#1236

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kar-rahul-aws kar-rahul-aws requested a review from a team as a code owner February 6, 2025 08:46
@kar-rahul-aws kar-rahul-aws changed the title Call key creation before checking if a thread is a FreeRTOS thread Call key creation before checking if a thread is FreeRTOS thread Feb 6, 2025
Copy link

sonarqubecloud bot commented Feb 6, 2025

@kar-rahul-aws kar-rahul-aws merged commit ae0a591 into FreeRTOS:main Feb 6, 2025
17 checks passed
@kar-rahul-aws kar-rahul-aws deleted the update_posix_port_1233 branch February 6, 2025 09:13
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.

3 participants