void OSSchedLock (OS_ERR *p_err)
File | Called from | Code enabled by |
---|---|---|
| Task only | N/A |
OSSchedLock()
prevents task rescheduling until its counterpart, OSSchedUnlock()
, is called. The task that calls OSSchedLock()
retains control of the CPU, even though other higher- priority tasks are ready-to-run. However, interrupts are still recognized and serviced (assuming interrupts are enabled). OSSchedLock()
and OSSchedUnlock()
must be used in pairs.
...