Skip to content

Conversation

Saiiijchan
Copy link
Contributor

  • On v11.1 SMP, pvPortMalloc() should not be called in critical secion. vTaskSuspenAll() would trigger assert if in criticalsection.
  • The pthread_cond APIs are not ISR safe. Use vTaskSuspendAll() to prevent race condition is enough.

Issue #, if available:

Description of changes:

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

- On v11.1 SMP, pvPortMalloc() should not be called in critical secion.
  vTaskSuspenAll() would trigger assert if in criticalsection.
- The pthread_cond APIs are not ISR safe. Use vTaskSuspendAll() to prevent
  race condition is enough.

Signed-off-by: wangfei_chen <[email protected]>
@aggarg aggarg merged commit 1bb2a09 into FreeRTOS:main Mar 31, 2025
1 check passed
@Saiiijchan Saiiijchan deleted the refine_prvInitializeStaticCond branch March 31, 2025 09:21
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