Hi cloud,
I have a problem when compile with gcc and run on macosx10.8 using the example main.c.
Because of ucontext.h, I try to change the include(using sys/ucontext.h instand of ucontext.h):
ifdef _ONMAC
include <sys/ucontext.h>
else
include
endif
then complie succ, but execute with some exception. co[1]->status had changed when coroutine_resume() it. so coroutine_resume():default assert(0) running...
I try to gdb and watch the variable of co[1]->status, but nothing to find...
so ... I'm deep appreciate of yours help, or any suggest.
Hi cloud, I have a problem when compile with gcc and run on macosx10.8 using the example main.c. Because of ucontext.h, I try to change the include(using sys/ucontext.h instand of ucontext.h):
ifdef _ONMAC
include <sys/ucontext.h>
else
include
endif
then complie succ, but execute with some exception. co[1]->status had changed when coroutine_resume() it. so coroutine_resume():default assert(0) running...
I try to gdb and watch the variable of co[1]->status, but nothing to find... so ... I'm deep appreciate of yours help, or any suggest.