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

Update preprocessor directive for xTaskGetCurrentTaskHandle #1136

Conversation

kar-rahul-aws
Copy link
Member

Description

This PR updates the preprocessor directive for xTaskGetCurrentTaskHandle from configUSE_MUTEXES to configUSE_RECURSIVE_MUTEXES . This change is made, since xTaskGetCurrentTaskHandle is used in these 2 functions

  1. https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/queue.c#L771
  2. https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/queue.c#L830

which use the configUSE_RECURSIVE_MUTEXES macro.

Test Steps

Compile and run the STM32H7-NUCLEO MPU demo and Posix-GCC demo

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.

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 September 4, 2024 07:02
Copy link

sonarcloud bot commented Sep 4, 2024

@aggarg aggarg merged commit a045081 into FreeRTOS:main Sep 4, 2024
16 checks passed
@aggarg aggarg deleted the update_config_macro_xTaskGetCurrentTaskHandleForCore branch September 4, 2024 09:31
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