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.

void *invoke(void *next)

Restores the "context" by calling the superclass's invoke() and places the frame pointer in the stack frame cache.

HISTORY ^

Initial revision by sean 2002/08/04.


parrot