Renaming parameters

This commit is contained in:
2020-06-02 13:00:06 +02:00
parent 3c428bae5c
commit c300a8dea6
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ public:
void free_slot(const int bunch_id);
ImageMetadataBlock* get_metadata_buffer(const int slot_id);
char* get_data_buffer(const int slot_id);
ImageMetadataBlock* get_metadata_buffer(const int bunch_id);
char* get_data_buffer(const int bunch_id);
};
+4 -4
View File
@@ -80,13 +80,13 @@ void ImageAssembler::free_slot(const int bunch_id)
buffer_status_[bunch_id % IA_N_SLOTS].store(n_modules_);
}
ImageMetadataBlock* ImageAssembler::get_metadata_buffer(const int slot_id)
ImageMetadataBlock* ImageAssembler::get_metadata_buffer(const int bunch_id)
{
return &(metadata_buffer_[slot_id % IA_N_SLOTS]);
return &(metadata_buffer_[bunch_id % IA_N_SLOTS]);
}
char* ImageAssembler::get_data_buffer(const int slot_id)
char* ImageAssembler::get_data_buffer(const int bunch_id)
{
return image_buffer_ +
((slot_id % IA_N_SLOTS) * image_buffer_slot_n_bytes_);
((bunch_id % IA_N_SLOTS) * image_buffer_slot_n_bytes_);
}