Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
void OSSchedLock (OS_ERR  *p_err)

File

Called from

Code enabled by

os_core.c

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.

...