Skip to content

core.class.task

Captain Spaulding edited this page Mar 9, 2021 · 11 revisions

DESCRIPTION

The task class is used by the kernel scheduler to manage the background processes handled.

STRUCTURE

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.core

ams.sys

  • ams.sys.info
  • ams.sys.timer
  • ams.sys.win.timer

ams.SDK

  • 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.carillon

  • ams.carillon.carillon

ams.utils

  • ams.utils.tts

ams.install

  • ams.install.loader

ams.ext

kickstarter

AMS Scripts

Clone this wiki locally