mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 15:14:36 +02:00
Move FastQueue to sf_stream
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "test_buffer_utils.cpp"
|
||||
#include "test_bitshuffle.cpp"
|
||||
#include "test_FastQueue.cpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ void FastQueue<T>::commit()
|
||||
}
|
||||
|
||||
write_slot_id_++;
|
||||
write_slot_id_ = write_slot_id_ % n_slots_;
|
||||
write_slot_id_ %= n_slots_;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
@@ -100,8 +100,9 @@ void FastQueue<T>::release()
|
||||
}
|
||||
|
||||
read_slot_id_++;
|
||||
read_slot_id_ = read_slot_id_ % n_slots_;
|
||||
read_slot_id_ %= n_slots_;
|
||||
}
|
||||
|
||||
template class FastQueue<BufferBinaryBlock>;
|
||||
template class FastQueue<ModuleFrame>;
|
||||
template class FastQueue<ModuleFrameBuffer>;
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "test_LiveRecvModule.cpp"
|
||||
#include "test_FastQueue.cpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user