摘要:
职业生涯 阅读全文
摘要:
1、原子操作问题: 原代码: int __atomic_add(int *ptr, int value) { int_disable(); *ptr += value; int_enable(); return *ptr; } 存在问题:ptr的操作没有在临界区中,return *ptr不是原子操作 阅读全文
Mic_chenIt is not the strongest of the species that survive, nor the most intelligent, but the one most responsive to change |