C++ 如何将64位机器的boost无锁大小增加到65535个对象以上?

C++ 如何将64位机器的boost无锁大小增加到65535个对象以上?,c++,boost,c++11,lock-free,C++,Boost,C++11,Lock Free,继续提问 如何在64位机器的情况下增加队列的大小 typedef boost::lockfree::queue<int, boost::lockfree::fixed_size<true>> MyQueue; MyQueue queue(1024*100); << how to increase the size to more than 65534? typedef boost::lockfree::queue MyQueue; 我的队列(1024*100

继续提问

如何在64位机器的情况下增加队列的大小

typedef boost::lockfree::queue<int, boost::lockfree::fixed_size<true>> MyQueue;
MyQueue queue(1024*100); << how to increase the size to more than 65534?
typedef boost::lockfree::queue MyQueue;

我的队列(1024*100) 正如所指出的,答案如下:(由实现者编写,):

对于64位平台,可以修改boost.lockfree代码 使用32位而不是16位索引。但这需要一些时间 非琐碎的更改可以正确地实现


(来自实现者Tim Blechmann本人的回答)“对于64位平台,可以调整boost.lockfree代码以使用32位而不是16位索引。但这需要一些非琐碎的更改才能正确实现。”谢谢,这正是我想知道的。要做什么改变。