Quit¶
Ends the calling task.
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x00 SVC_QUIT |
— | no | 2.0 |
void Quit(Err exit_status);
Registers: (exit_status) -> does not return
Never returns.
The task becomes a zombie and exit_status is reported to whoever waits on it: WaitOnTask() returns it as the value with outcome TASK_EXITED, and events bound with EVENT_TASK fire. If this was the last live task in its space, the space becomes hollow and WaitOnSpace() returns the same status. The task's memory is reclaimed once the last handle to it is closed (or, for the last task, when its space is destroyed).
Parameters¶
| Name | Direction | Description |
|---|---|---|
exit_status |
in | Status to report; by convention ZUZU_OK or an Err. |