NAME
src/pmc/retcontinuation.pmc - Return Continuation
DESCRIPTION
RetContinuation
extends Continuation
.
A return continuation is a one shot Continuation. It gets recycled immediately after invocation.
Methods
void init()
Initializes the continuation.
PMC *clone
Return a new Continuation PMC with the context of SELF.
Note: the returned object is not a RetContinuation and creating a real Continuation invalidates all RetContinuation all the way up the call chain that is,
these can't be recycled,
they get persistent until the GC gets at them.
opcode_t *invoke(void *next)
Transfers control to the calling context,
and frees the current context.
HISTORY
Initial revision by sean 2002/08/04.