Goon process scheduler

This commit is contained in:
ZomgPonies
2015-02-22 15:24:46 -05:00
parent 1f5ef8d4dd
commit 2c50a42ba7
51 changed files with 2246 additions and 24 deletions
@@ -0,0 +1,15 @@
/**
* testHungProcess
* This process is an example of a simple update loop process that hangs.
*/
/datum/controller/process/testHungProcess/setup()
name = "Hung Process"
schedule_interval = 30 // every 3 seconds
/datum/controller/process/testHungProcess/doWork()
sleep(1000) // FUCK
// scheck is also responsible for handling hung processes. If a process
// hangs, and later resumes, but has already been killed by the scheduler,
// scheck will force the process to bail out.
scheck()