mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
c31f9a570c
commit
284014fed1
1 changed files with 6 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue