sched,nr: fix older gcc compilation array initialization

This commit is contained in:
Francisco Paisana 2021-09-01 17:30:27 +02:00
parent 510a87e4b2
commit 75cd71b794
2 changed files with 8 additions and 2 deletions

View File

@ -36,7 +36,7 @@ protected:
constexpr static uint32_t pbr_infinity = -1;
public:
explicit ue_buffer_manager(srslog::basic_logger& logger_) : logger(logger_) {}
explicit ue_buffer_manager(srslog::basic_logger& logger_);
// Bearer configuration
void config_lcid(uint32_t lcid, const mac_lc_ch_cfg_t& bearer_cfg);
@ -88,7 +88,7 @@ protected:
};
std::array<logical_channel, MAX_NOF_LCIDS> channels;
std::array<int, MAX_NOF_LCGS> lcg_bsr{0};
std::array<int, MAX_NOF_LCGS> lcg_bsr;
};
} // namespace srsenb

View File

@ -17,6 +17,12 @@
namespace srsenb {
template <bool isNR>
ue_buffer_manager<isNR>::ue_buffer_manager(srslog::basic_logger& logger_) : logger(logger_)
{
std::fill(lcg_bsr.begin(), lcg_bsr.end(), 0);
}
template <bool isNR>
void ue_buffer_manager<isNR>::config_lcid(uint32_t lcid, const mac_lc_ch_cfg_t& bearer_cfg)
{