练习
练习1:说明不会出现死锁的原因
练习2:设计方案
练习3:信号量实现条件变量
练习4:禁用中断
static __noinline uint32_t __down(semaphore_t *sem, uint32_t wait_state) {
bool intr_flag;
local_intr_save(intr_flag);
/*some code*/
local_intr_restore(intr_flag);
}最后更新于