Modulo on atomic is not really supported

This commit is contained in:
2020-06-09 14:14:12 +02:00
parent c541da141b
commit 337c3d5462
+2 -2
View File
@@ -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>;