check RET in _join
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
(chx_sched): Add an argument for race avoidance.
|
(chx_sched): Add an argument for race avoidance.
|
||||||
(chopstx_intr_wait): Fix the race condition.
|
(chopstx_intr_wait): Fix the race condition.
|
||||||
(chopstx_cond_broadcast): Fix initial value.
|
(chopstx_cond_broadcast): Fix initial value.
|
||||||
|
(chopstx_join): Check RET.
|
||||||
|
|
||||||
* board/board-olimex-stm32-h103.h (NEUG_ADC_SETTING2_*): Add.
|
* board/board-olimex-stm32-h103.h (NEUG_ADC_SETTING2_*): Add.
|
||||||
|
|
||||||
|
|||||||
@@ -1131,6 +1131,7 @@ chopstx_join (chopstx_t thd, void **ret)
|
|||||||
}
|
}
|
||||||
|
|
||||||
tp->state = THREAD_FINISHED;
|
tp->state = THREAD_FINISHED;
|
||||||
|
if (ret)
|
||||||
*ret = (void *)tp->tc.reg[0];
|
*ret = (void *)tp->tc.reg[0];
|
||||||
asm volatile ("cpsie i" : : : "memory");
|
asm volatile ("cpsie i" : : : "memory");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user