[DGD] Kernel library question

Felix A. Croes felix at dworkin.nl
Wed Aug 22 18:40:31 CEST 2018


Raymond Jennings <shentino at gmail.com> wrote:

> Felix:
>
> Concerning how you originally designed the kernel library, what
> happens if a callout goes off while callouts are suspended?
>
> Inspecting the source code, it would appear that the callout is
> requeued at LONG_TIME
>
> But I noticed a potential oversight:
>
> 1.  The handle of the requeued callout might change
> 2.  What happens if we try to remove_call_out(old_handle)?

This is one of various problems with the idea of callout suspension.
Callout suspension was one of my first exploratory steps towards a
mudlib suitable for Hydra, which didn't pan out.  Eventually I came
to the conclusion that when there is work to do before the next
callout runs, you do it during the current task, come what may.

Regards,
Felix Croes



More information about the DGD mailing list