Critical Region Interface#

Provides API's used by components of the Sidewalk SDK to solve concurrency issues.

Functions#

void

Code executed between calls of function declared below will be protected from interruption from different thread or ISR context.

void

Implements enabling of all hardware and software interrupts that were previously disabled by enter function Code executed between calls of function declared below will be protected from interruption from different thread or ISR context.

Function Documentation#

sid_pal_enter_critical_region#

void sid_pal_enter_critical_region ()

Code executed between calls of function declared below will be protected from interruption from different thread or ISR context.

Note

  • Implementation is actually disabled IRQ's, so remember, amount of code and execution time of code between calls of enter and exit functions should be as minimal as possible

Implements disabling of all hardware and software interrupts


sid_pal_exit_critical_region#

void sid_pal_exit_critical_region ()

Implements enabling of all hardware and software interrupts that were previously disabled by enter function Code executed between calls of function declared below will be protected from interruption from different thread or ISR context.

Note

  • Implementation is actually disabled IRQ's, so remember, amount of code and execution time of code between calls of enter and exit functions should be as minimal as possible