mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 09:31:13 +00:00
initial commit for process scheduler
This commit is contained in:
13
code/controllers/ProcessScheduler/test/testZombieProcess.dm
Normal file
13
code/controllers/ProcessScheduler/test/testZombieProcess.dm
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* testBadZombieProcess
|
||||
* This process is an example of a simple update loop process that hangs.
|
||||
*/
|
||||
|
||||
/datum/controller/process/testZombieProcess/setup()
|
||||
name = "Zombie Process"
|
||||
schedule_interval = 30 // every 3 seconds
|
||||
|
||||
/datum/controller/process/testZombieProcess/doWork()
|
||||
for (var/i = 0, i < 1000, i++)
|
||||
sleep(1)
|
||||
scheck()
|
||||
Reference in New Issue
Block a user