[1229] in Coldmud discussion meeting

root meeting help first previous next last

[COLD] cancel()

daemon@ATHENA.MIT.EDU (Tue Feb 4 06:48:44 1997 )

From: silovic@srce.hr (Miroslav Silovic)
To: coldstuff@cold.org
Date: Tue, 4 Feb 1997 12:36:46 +0100 (MET)

I just noticed another possible bug source. Basically, doing something
like this:

pause(); cancel(some_paused_task);

won't crash the driver (or so I hope) but is very likely to throw,
complaining that the task doesn't exist. The trick is that
run_paused_tasks() will temporarily steal the preemted task list.
canceling suspended tasks in this manner is still okay.
This isn't a critical bug (it can't cause a crash), so I'd rather
leave it for the time when we have *real* multitasking.