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.

Does Swi_disable() disables tasks implicitly?

Hi,

I have a 3 threads and 2 SWIs, all shares some global resource. I am using Swi_disable() to disable SWIs before accessing this resource.

The question is:

Does calling Swi_disable() from low priority thread ensures that higher priority threads will not preempt it?

Or should I call Task_disable() followed by Swi_disable()?