AnsweredAssumed Answered

Stop and Start task preemption using _int_disable..._int_enable functions

Question asked by Akhil M V on Jul 14, 2015
Latest reply on Jul 14, 2015 by Akhil M V

Hi all,

I want to stop the task preemption and mask the ISR simultaneously. Do the function call _int_disable() is enough for this?

Or do I need to call  _int_disable()  for masking the ISR and task_stop_preemption() for stopping the task preemption as follows?

 

...

...

_int_disable();

_task_stop_preemption();

...

...

_task_start_preemption();

_int_enable();

...

...

 

OS: MQX 4.0.2

Note: FIFO scheduling is used.

 

Thanks

Akhil

Outcomes