We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
queue的front()和back()方法没有加锁,感觉有可能在别的线程做pop后缩容的时候存在某个时刻q.data[q.begin]访问了一个非法地址
The text was updated successfully, but these errors were encountered:
数据结构 也分 线程安全/线程不安全, 一般来说都是同步单线程方法,不加锁的数据结构能够保证性能。
有线程安全的需求可以自己实现相对应的 数据结构
Sorry, something went wrong.
No branches or pull requests
queue的front()和back()方法没有加锁,感觉有可能在别的线程做pop后缩容的时候存在某个时刻q.data[q.begin]访问了一个非法地址
The text was updated successfully, but these errors were encountered: