Getting somewhere, with the new schedulers, the TASK logic works now much better!

- Schedulers are stopped when the parent object is destroyed.
- Parent objects are garbage cleaned.
- Destructors are called.

Jippie! Results!!!
This commit is contained in:
FlightControl
2016-12-13 13:05:21 +01:00
parent e98814e8d4
commit 02d4bbf3ff
7 changed files with 15 additions and 12 deletions

View File

@@ -132,7 +132,7 @@ function BASE:_SetDestructor()
-- TODO: Okay, this is really technical...
-- When you set a proxy to a table to catch __gc, weak tables don't behave like weak...
-- Therefore, I am parking this logic until I've properly discussed all this with the community.
--[[
--
local proxy = newproxy(true)
local proxyMeta = getmetatable(proxy)
@@ -147,7 +147,7 @@ function BASE:_SetDestructor()
-- table is about to be garbage-collected - then the __gc hook
-- will be invoked and the destructor called
rawset( self, '__proxy', proxy )
--]]
--
end
--- This is the worker method to inherit from a parent class.