initial commit for process scheduler

This commit is contained in:
Graham Lloyd
2015-02-18 04:23:41 -05:00
parent 2c7f4024ca
commit 3acfc51c45
23 changed files with 1811 additions and 0 deletions

View File

@@ -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()