Skip to content

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
@sonarqubecloud
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
moninom1 pushed a commit to moninom1/FreeRTOS-Kernel that referenced this pull request Sep 30, 2025
* Unit test updates for kernel PR FreeRTOS#1111

FreeRTOS#1111

Signed-off-by: Gaurav Aggarwal <[email protected]>

* Fix doxygen check

Signed-off-by: Gaurav Aggarwal <[email protected]>

---------

Signed-off-by: Gaurav Aggarwal <[email protected]>
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