TaskSetMaxPriority¶
Sets the highest priority a task may give itself; lowers its base priority if needed.
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x0C SVC_MANAGETASK |
MNGTASK_SET_MAX_PRIO (3) |
no | 2.0 |
Err TaskSetMaxPriority(Handle h, uint32_t val);
Registers: (task, max) -> r0 status
Parameters¶
| Name | Direction | Description |
|---|---|---|
h |
in | Task handle with PERM_CNTL, or -1 for the caller. |
val |
in | New maximum priority. |
Returns¶
ZUZU_OK, or an error code.
Errors¶
| Error | Condition |
|---|---|
ERR_NOPERM |
val is above the caller's own maximum, or h lacks PERM_CNTL. |
ERR_BADHANDLE |
h is not a live handle. |
ERR_BADTYPE |
h is not a task. |