]> begriffs open source - freertos/commit
refactor: change methods ENTER|EXIT critical (#1140)
authorGuilherme Giácomo Simões <49237332+GuilhermeGiacomoSimoes@users.noreply.github.com>
Mon, 7 Oct 2024 05:07:50 +0000 (02:07 -0300)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 05:07:50 +0000 (10:37 +0530)
commite81ad46b0e0934142ab31dff4eddcf6b531c1a1d
tree68a7cda28478584bca142adca91171a5b792779d
parent1cb80429612506952f4d2ac5b3b70273c41cb7a5
refactor: change methods ENTER|EXIT critical (#1140)

refactor: change methods ENTER|EXIT critical

The read and write of BaseType_t are atomic for a number of ports
and therefore, do not require taskENTER_CRITICAL/taskEXIT_CRITICAL.
This PR introduces portBASE_TYPE_ENTER_CRITICAL and
portBASE_TYPE_EXIT_CRITICAL which default to  taskENTER_CRITICAL
and taskEXIT_CRITICAL. The APIs that read/write BaseType_t are updated
to use these new macros.

The next change would to be to define portBASE_TYPE_ENTER_CRITICAL and
portBASE_TYPE_EXIT_CRITICAL to nothing for ports where BaseType_t
read and write are atomic.

Signed-off-by: guilherme giacomo simoes <trintaeoitogc@gmail.com>
.github/third_party_tools.md
examples/coverity/README.md
include/portable.h
queue.c
tasks.c
timers.c