-
Notifications
You must be signed in to change notification settings - Fork 0
ams:kill()
Captain Spaulding edited this page Mar 9, 2021
·
5 revisions
This method kills the task referenced by the given <task_ID> and frees it from the scheduler.
ams:kill(<task_ID>)
-
<task_ID>- the ID of the task.
None.
require('ams')
require('ams')
local function my_funct(self)
print("Hello World!")
end
local function my_other_funct(self)
if self.parm.count > 0 then
self.parm.count = self.parm.count - 1
return
end
ams:kill(self.parm.slaveID) --> kills the slave process, referenced by ID
self:kill() --> kills itself
end
local _, slaveID = ams:exec(my_funct, "My test function")
ams:exec(my_other_funct,"My other test function", ams.C.OFTEN, {count = 20, slaveID = slaveID})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