CALL - invoke a co-routine group.

Alternate Entry Name: .CALL

Usage:

B:
   retval = call( fcv [, value] );
C:
   int call(void *fcv [,int value] );

Where:

retval
is the value returned by the co-routine group.
fcv
is a pointer to the co-routine in the group which initially gains control.
value
is the value passed to the invoked co-routine.

Description:

CALL invokes the co-routine specified by "fcv", at the point at which it was last suspended (by CALL, RESUME, DETACH, break, or function entry). A pointer to the current co-routine (i.e. the caller) is saved in the fcv of the callee. This pointer may be obtained by the function CALLER. This pointer to the caller (parent attribute) is also passed to any co-routines that are resumed by the callee.

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

See Also:

expl b lib detach

expl b lib caller

expl b lib passer

Copyright © 1996, Thinkage Ltd.