mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-24 02:30:44 +02:00
Lets make fast queue slower
This commit is contained in:
@@ -73,7 +73,7 @@ void FastQueue<T>::commit()
|
||||
}
|
||||
|
||||
write_slot_id_++;
|
||||
write_slot_id_ %= n_slots_;
|
||||
write_slot_id_ = write_slot_id_ % n_slots_;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
@@ -100,7 +100,7 @@ void FastQueue<T>::release()
|
||||
}
|
||||
|
||||
read_slot_id_++;
|
||||
read_slot_id_ %= n_slots_;
|
||||
read_slot_id_ = read_slot_id_ % n_slots_;
|
||||
}
|
||||
|
||||
template class FastQueue<ModuleFrame>;
|
||||
|
||||
Reference in New Issue
Block a user