mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-05 16:34:13 +02:00
Use constant instead of literal
This commit is contained in:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user