【发布时间】:2016-08-10 18:07:20
【问题描述】:
我正在尝试使用读/写锁来保护我的list,我在这个线程中找到了解决方案:
What's the best linux kernel locking mechanism for a specific scenario
但我找不到此解决方案所需的标头,似乎已过时,错误:
error: ‘RW_LOCK_UNLOCKED’ undeclared here (not in a function)
使用<linux/spinlock.h>
【问题讨论】:
标签: linux multithreading locking