mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 08:32:43 +02:00
Modulo on atomic is not really supported
This commit is contained in:
@@ -72,7 +72,7 @@ void FastQueue<T>::commit()
|
||||
}
|
||||
|
||||
write_slot_id_++;
|
||||
write_slot_id_ %= n_slots_;
|
||||
write_slot_id_ = write_slot_id_ % n_slots_;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
@@ -99,7 +99,7 @@ void FastQueue<T>::release()
|
||||
}
|
||||
|
||||
read_slot_id_++;
|
||||
read_slot_id_ %= n_slots_;
|
||||
read_slot_id_ = read_slot_id_ % n_slots_;
|
||||
}
|
||||
|
||||
template class FastQueue<BufferBinaryBlock>;
|
||||
|
||||
Reference in New Issue
Block a user