Started work on the debugManager

This commit is contained in:
2023-06-30 16:14:21 -04:00
parent d36204c87f
commit b2569118a2
5 changed files with 115 additions and 53 deletions
+37
View File
@@ -0,0 +1,37 @@
local multi, thread = require("multi"):init()
local dbg = {}
local creation_hook
creation_hook = function(obj, process)
print("Created: ",obj.Type, "in", process.Type, process:getFullName())
if obj.Type == multi.PROCESS then
obj.OnObjectCreated(creation_hook)
end
end
local tmulti = multi:getThreadManagerProcess()
multi.OnObjectCreated(creation_hook)
tmulti.OnObjectCreated(creation_hook)
--[[
multi.ROOTPROCESS = "rootprocess"
multi.CONNECTOR = "connector"
multi.TIMEMASTER = "timemaster"
multi.PROCESS = "process"
multi.TIMER = "timer"
multi.EVENT = "event"
multi.UPDATER = "updater"
multi.ALARM = "alarm"
multi.LOOP = "loop"
multi.TLOOP = "tloop"
multi.STEP = "step"
multi.TSTEP = "tstep"
multi.THREAD = "thread"
multi.SERVICE = "service"
multi.PROXY = "proxy"
multi.THREADEDFUNCTION = "threaded_function"
]]
return dbg