sched,nr: fix older gcc compilation array initialization

master
Francisco Paisana 3 years ago
parent 510a87e4b2
commit 75cd71b794

@ -36,7 +36,7 @@ protected:
constexpr static uint32_t pbr_infinity = -1; constexpr static uint32_t pbr_infinity = -1;
public: public:
explicit ue_buffer_manager(srslog::basic_logger& logger_) : logger(logger_) {} explicit ue_buffer_manager(srslog::basic_logger& logger_);
// Bearer configuration // Bearer configuration
void config_lcid(uint32_t lcid, const mac_lc_ch_cfg_t& bearer_cfg); 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<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 } // namespace srsenb

@ -17,6 +17,12 @@
namespace srsenb { 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> template <bool isNR>
void ue_buffer_manager<isNR>::config_lcid(uint32_t lcid, const mac_lc_ch_cfg_t& bearer_cfg) void ue_buffer_manager<isNR>::config_lcid(uint32_t lcid, const mac_lc_ch_cfg_t& bearer_cfg)
{ {

Loading…
Cancel
Save