Skip to content

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
@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

3 participants