Use constant instead of literal

This commit is contained in:
2020-05-19 16:14:05 +02:00
parent 03bee71b49
commit 9549b6be45
+4 -2
View File
@@ -13,7 +13,8 @@ BufferedFastQueue::BufferedFastQueue(
n_modules_(n_modules)
{
while ((current_slot_id_ = queue_.reserve()) == -1){
this_thread::sleep_for(chrono::milliseconds(5));
this_thread::sleep_for(
chrono::milliseconds(RB_READ_RETRY_INTERVAL_MS));
}
queue_meta_buffer_ = queue_.get_metadata_buffer(current_slot_id_);
@@ -50,7 +51,8 @@ void BufferedFastQueue::commit()
queue_.commit();
while ((current_slot_id_ = queue_.reserve()) == -1){
this_thread::sleep_for(chrono::milliseconds(5));
this_thread::sleep_for(
chrono::milliseconds(RB_READ_RETRY_INTERVAL_MS));
}
queue_meta_buffer_ = queue_.get_metadata_buffer(current_slot_id_);