_enable_interrupts and _disable_interrupts
Do these functions disable threads, and others also? Or only interrupts? SWI, HWIs?
Hari
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
_enable_interrupts and _disable_interrupts
Do these functions disable threads, and others also? Or only interrupts? SWI, HWIs?
Hari
_enable_interrupts/_disable_interrupts only enable/disable interrupts.
The Task schedule and the Swi scheduler are not disabled.
However, I should point out that typically a thread (Task) is enabled via a Semaphore_post from a Hwi or Swi,
and Swis are typically enabled via a Swi_post from a Hwi so in that sense, when you disable Hwis you are disabling Swis and Tasks.
If you happen to do a Semphore_post from a Task and that unblocked a higher ready Task, it will unblock the Task to run.
Judah