ALPHA COTHREADS WORK! Worked around a nasty stack issue that probably can't be solved anyway. Tomorrow the UDB buil...

Original commit message from CVS:
ALPHA COTHREADS WORK!  Worked around a nasty stack issue that probably
can't be solved anyway.  Tomorrow the UDB build will commence, and let the
best guess win!
This commit is contained in:
Erik Walthinsen 2001-01-19 07:48:43 +00:00
parent c31f9a570c
commit 284014fed1

View file

@ -173,14 +173,18 @@ cothread_stub (void)
register cothread_state *thread = ctx->threads[ctx->current];
GST_DEBUG_ENTER("");
thread->flags |= COTHREAD_STARTED;
if (thread->func)
while (1) {
thread->func(thread->argc,thread->argv);
// we do this to avoid ever returning, we just switch to 0th thread
cothread_switch(cothread_main(ctx));
}
thread->flags &= ~COTHREAD_STARTED;
thread->pc = 0;
thread->sp = thread->top_sp;
fprintf(stderr,"uh, yeah, we shouldn't be here, but we should deal anyway\n");
GST_DEBUG_LEAVE("");
// fprintf(stderr,"uh, yeah, we shouldn't be here, but we should deal anyway\n");
}
/**