Adds processes, next step is to replace them in the current MC and ticker

This commit is contained in:
Graham Lloyd
2015-02-19 05:09:35 -05:00
parent 3acfc51c45
commit 8364c3de2d
17 changed files with 263 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
var/global/list/object_profiling = list()
/datum/controller/process/obj
var/tmp/datum/updateQueue/updateQueueInstance
/datum/controller/process/obj/setup()
name = "obj"
schedule_interval = 20 // every 2 seconds
updateQueueInstance = new
/datum/controller/process/obj/started()
..()
if(!updateQueueInstance)
if(!processing_objects)
processing_objects = list()
else if(processing_objects.len)
updateQueueInstance = new
/datum/controller/process/obj/doWork()
if(updateQueueInstance)
updateQueueInstance.init(processing_objects, "process")
updateQueueInstance.Run()