Task Lock & Task Unlock

Tim Cussins timcussins at eml.cc
Fri Jan 18 07:52:26 CST 2008


Hi Andre,

On Fri, 18 Jan 2008 10:23:51 -0300, "Gatti André" <agatti at invap.com.ar>
said:
> 
> We need to lock and unlock tasks to avoid task context switching. I
> didn't see this functionallity in the user_c manual. Is there a way to
> lock/unlock tasks?
> 

You can change a tasks mode to RTEMS_NO_PREEMPT. In this case, it can't
be preempted until it issues a call that blocks, or it explicitly
yields.

However, if an ISR unblocks a higher priority task, I'm not entirely
sure what happens on ISR exit...

Tim



More information about the rtems-users mailing list