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

Usage:

#include <coro.h>
retval = _resume( cptr [, val] );

Where:

retval
is the value passed to this co-routine when it is resumed again.
_coptr cptr;
identifies the co-routine to which control is being passed. This identifier must have been created by the "_coro" function that created the co-routine.
val
is a value passed to the resumed co-routine. It will be returned as the value of "_cret" or "_resume" in that routine.

Description:

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

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 "_coro".

See Also:

expl nsc coro

expl nsc lib _coro

expl nsc lib _ccall

expl nsc lib _cret

expl nsc lib _cdel

Copyright © 1996, Thinkage Ltd.