mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-11-09 23:53:53 +01:00
Lets make fast queue slower
This commit is contained in:
1 parent
44477d4453
commit
6503c9b4e9
1 file changed
+2
-2
@@ -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