[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Task Lock & Task Unlock
- Date: Fri, 18 Jan 2008 13:52:26 +0000
- From: timcussins at eml.cc (Tim Cussins)
- Subject: Task Lock & Task Unlock
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