RESUME - resume/invoke another co-routine inside a group.

Usage:

B:
   retval = resume( fcv [, val] );
C:
   int resume(void *fcv [, int val] );

Where:

retval
is the value passed to this co-routine when it is resumed again.
fcv
identifies the co-routine to which control is being passed.
val
is a value passed to the resumed co-routine. It will be returned as the value of DETACH or RESUME in that routine.

Description:

RESUME invokes the specified co-routine at the point it was last suspended. The caller (parent) attribute is inherited by the resumed routine so that if it does a DETACH, control will be passed to the same routine as if the current co-routine did a DETACH.

If the "val" parameter is specified for a co-routine that has not previously been invoked, the first argument will be set to "val". This will override the value of the first argument specified in the call to CREATE.

See Also:

expl b lib detach

expl b lib call

Copyright © 1996, Thinkage Ltd.