Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

void OSSchedUnlock(OS_ERR  *p_err);

...

File

...

...

Called from

...

Code enabled by

...

...

os_core.c

...

Task only

...

N/A

Anchor10029111002911OSSchedUnlock() re-enables task scheduling whenever it is paired with OSSchedLock(). Anchor10029121002912

Arguments

Anchor10029131002913p_erranchor10029141002914

is a pointer to a variable that will contain an error code returned by this function.

...

classWebWorks_Indent_1

...

...

OS_ERR_NONE

...

classWebWorks_Indent_2

...

the call is successful and the scheduler is no longer locked.

...

classWebWorks_Indent_1

...

OS_ERR_OS_NOT_RUNNING

...

...

if calling this function before calling OSStart().

...

classWebWorks_Indent_1

...

OS_ERR_SCHED_LOCKED

...

...

if the scheduler is still locked. This would indicate that scheduler lock has not fully unnested

...

classWebWorks_Indent_1

...

OS_ERR_SCHED_NOT_LOCKED

...

classWebWorks_Indent_2

...

if the user did not call OSSchedLock().

...

...

OS_ERR_SCHED_UNLOCK_ISR

...

classWebWorks_Indent_2

...

if OS_CFG_CALLED_FROM_ISR_CHK_EN set to 1 in os_cfg.h: if you attempted to unlock scheduler from an ISR.

...

Returned Value

Anchor10029241002924None Anchor10029251002925

Notes/Warnings

...

None Anchor10029711002971

Example

...

rowspan14

...