I have a section of code (a few lines) which much not be interrupted (updating the hardware watchdog) by context/task switching. How can I tell MQX to temporarily disable task switching? I couldn't find anything in the documention, but I was sure I've seen it before...
Thanks,
Brad
解決済! 解決策の投稿を見る。
to answer my own question:
_task_stop_preemption();
and
_task_start_preemption();
Should the interrupts also be disabled?
I have used:
_int_disable();
_int_enable();
~Mark