mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-12 19:50:17 +05:00
Fixed compile of VOIP for older compilers
This commit is contained in:
parent
f26845ad2b
commit
c83b4f3950
@ -34,11 +34,11 @@ template<typename T>
|
||||
class NetQueue {
|
||||
std::vector<T> arr;
|
||||
const unsigned int mask;
|
||||
std::atomic<unsigned int> mhead = 0;
|
||||
std::atomic<unsigned int> mtail = 0;
|
||||
std::atomic<unsigned int> mhead;
|
||||
std::atomic<unsigned int> mtail;
|
||||
|
||||
public:
|
||||
NetQueue(unsigned int size) : arr(size), mask(size - 1) {
|
||||
NetQueue(unsigned int size) : arr(size), mask(size - 1), mhead(0), mtail(0) {
|
||||
if(size & mask) throw std::invalid_argument("size must be a power of 2");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user