-
Notifications
You must be signed in to change notification settings - Fork 0
core.class.task
Captain Spaulding edited this page Mar 9, 2021
·
11 revisions
The task class is used by the kernel scheduler to manage the background processes handled.
core.class.task. |
type | description |
|---|---|---|
| PUBLIC | ||
exec() |
method | Executes the task's function |
kill() |
method | Kills itself |
pause() |
method | Pauses itself until resumed or killed |
resume() |
method | Resumes after pause |
hi_priority() |
method | Set as hi-priority tasks |
low_priority() |
method | Set as low-priority task |
set_queue(queue) |
method | Move itself to another queue |
set_arg(<el>) |
method | Sets the arg variable to
|
arg |
variable | Holds any kind of user value or array |
| PRIVATE | ||
funct(self) |
function_ptr | The function that this task calls |
queue |
number | The current queue for this task |
queue_order |
number | Position in queue during last execution |
queue_stats |
array_ptr | |
kill_flag |
bool | Task set to be removed |
sleeping_flag |
bool | Task set to be sleeping |
priority_flag |
bool | Task set to hi priority |
error_flag |
bool | Last execution encountered an error |
error_cnt |
number | Total number of consecutive execution's errors |
error_limit |
number | Maximum number errors before process is killed |
calls |
number | Number of times this task has been called |
cpu_time |
number | The CPU time of last execution |
max_cpu_time |
number | The maximum time spent for an execution |
total_cpu_time |
number | Sum of total CPU time spent |
_super_max_cpu_time |
number |
AMS an Advanced Library Package for FlyWithLua
Updated to v.1.55a (private alpha)
Copyright (C) 2021 Pasquale Croce
- ams.core.kernel
-
ams.core.dref_mgr
- ams:create_dref()
- ams:create_command()
- ams:map_dref()
- ams.core.wm
- ams:register_window()
- ams.core.for_loop
- ams:for_loop()
- ams.core.spc
- ams:spc()
-
ams.core.procs_mon
- ams:procs_mon()
- ams.core.debug
- ams.core.config
- ams.sys.info
- ams.sys.timer
- ams.sys.win.timer
- ams.SDK.XPML
- ams.SDK.scenery
- ams.SDK.map
- ams.SDK.datarefs
- ams.SDK.AIplanes
- ams.SDK.menus
- ams.SDK.processing
- ams.SDK.graphics
- ams.xlua.math
- ams.xlua.strings
- ams.xlua.table
- ams.xlua.Vec2D
- ams.xlua.Const
- ams.xlua.Stack
- ams.carillon.carillon
- ams.utils.tts
- ams.install.loader