[604] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: New functions on the version 0.12 of the server

daemon@ATHENA.MIT.EDU (Sun Nov 27 22:52:15 1994 )

From: deforest@netcom.com (Robert de Forest)
To: brandon@avon.declab.usu.edu
Date: Sun, 27 Nov 1994 19:47:53 -0800 (PST)
Cc: coldstuff@MIT.EDU
In-Reply-To: <9411280033.AA03057@avon.declab.usu.edu> from "brandon@avon.declab.usu.edu" at Nov 27, 94 05:33:34 pm

> 
> < Suspend causes a task to be stored in the internal table of suspended tasks.
> < It takes no args and returns a value specified by the resume() call or 0 if
>   ----------------
> 
> I just started playing around with this recently.  Now forgive me if I am not
> correctly understanding the implied usage of this function, but on the driver
> I received from Jordan's archive site suspend() can only be called by $sys,
> and since one would be unable to remotely suspend a method through a thunk,
> restricting it to $sys means that only methods on $sys can be suspended, which
> seems rather overly restrictive?  (Or am I just reading it wrong, the only
> way I can figure out what it does is by playing with it and reading the code)
> For now I've just removed the sys object checking, as I would like to play
> around with it...
> 
> |    Brandon (Lynx) Web Pages: http://www.declab.usu.edu:8080/~brandon/     |
> |         the Cold Dark: telnet://recumbent.declab.usu.edu:1138/            |
> 

It suspends the current task. It does not manipulate the tick count. Use
 pause() to retore ticks. Write a $sys.suspend() to allow non-sys methods
 to suspend.

I do not understand 'unable to remotely suspend a method through a think'.

Crag / Robert