正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
trunk/research/st/sched.c
100644 → 100755
@@ -596,8 +596,7 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl | @@ -596,8 +596,7 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl | ||
596 | trd->context[0].__jmpbuf[0].__pc = (__ptr_t) _st_thread_main; | 596 | trd->context[0].__jmpbuf[0].__pc = (__ptr_t) _st_thread_main; |
597 | trd->context[0].__jmpbuf[0].__sp = stack->sp; | 597 | trd->context[0].__jmpbuf[0].__sp = stack->sp; |
598 | #else | 598 | #else |
599 | - int ret_setjmp = 0; | ||
600 | - if ((ret_setjmp = MD_SETJMP((trd)->context)) != 0) { | 599 | + if (MD_SETJMP((trd)->context)) { |
601 | _st_thread_main(); | 600 | _st_thread_main(); |
602 | } | 601 | } |
603 | MD_GET_SP(trd) = (long) (stack->sp); | 602 | MD_GET_SP(trd) = (long) (stack->sp); |
-
请 注册 或 登录 后发表评论