<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I have a task performing some actions,
that I would like to not be done at the same time by another task. I know
it would certainly be better to use semaphores but this code was not writtten
by me and it would be complicated to change it.</font>
<br>
<br><font size=2 face="sans-serif">To do so I chose to modify the task
mode of my current task executing the actions that should not be done concuratively
like so.</font>
<br>
<br><font size=2 face="sans-serif">rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK,
&previous_mode);</font>
<br>
<br><font size=2 face="sans-serif">If I understand it correctly this new
mode should keep other tasks from being called until I reactivate the preemption,
is it correct?</font>
<br><font size=2 face="sans-serif">So for the time where my current task
is set as not preemptive I have no risk that the code I'm currently executing
will be done by another task.</font>
<br>
<br><font size=2 face="sans-serif">I hope someone can clarify this for
me. </font>
<br>
<br><font size=2 face="sans-serif">Thanks in advance, Léo.</font>
<br>