Lets make fast queue slower

This commit is contained in:
2020-06-08 17:57:54 +02:00
parent 44477d4453
commit 6503c9b4e9
+2 -2
View File
@@ -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>;