...
void OSSchedUnlock(OS_ERR *p_err);
...
File |
...
...
Called from |
...
Code enabled by |
...
...
|
...
Task only |
...
N/A |
Anchor
OSSchedUnlock()
re-enables task scheduling whenever it is paired with OSSchedLock()
.Arguments
Anchor
p_err
anchoris a pointer to a variable that will contain an error code returned by this function.
...
class | WebWorks_Indent_1 |
---|
...
...
OS_ERR_NONE
...
class | WebWorks_Indent_2 |
---|
...
the call is successful and the scheduler is no longer locked.
...
class | WebWorks_Indent_1 |
---|
...
OS_ERR_OS_NOT_RUNNING
...
...
if calling this function before calling OSStart()
.
...
class | WebWorks_Indent_1 |
---|
...
OS_ERR_SCHED_LOCKED
...
...
if the scheduler is still locked. This would indicate that scheduler lock has not fully unnested
...
class | WebWorks_Indent_1 |
---|
...
OS_ERR_SCHED_NOT_LOCKED
...
class | WebWorks_Indent_2 |
---|
...
if the user did not call OSSchedLock()
.
...
...
OS_ERR_SCHED_UNLOCK_ISR
...
class | WebWorks_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
Anchor
Notes/Warnings
...
None Anchor
Example
...
rowspan | 14 |
---|
...