application of new cache allocator to deques in scheduler

master
Francisco 4 years ago committed by Francisco Paisana
parent 28847badcf
commit b619a2b649

@ -15,6 +15,7 @@
#include "sched.h" #include "sched.h"
#include "schedulers/sched_base.h" #include "schedulers/sched_base.h"
#include "srsran/adt/pool/cached_alloc.h"
#include "srsran/srslog/srslog.h" #include "srsran/srslog/srslog.h"
namespace srsenb { namespace srsenb {
@ -122,9 +123,9 @@ private:
const sched_cell_params_t* cc_cfg = nullptr; const sched_cell_params_t* cc_cfg = nullptr;
sched_ue_list* ue_db = nullptr; sched_ue_list* ue_db = nullptr;
std::deque<pending_rar_t> pending_rars; srsran::deque<pending_rar_t> pending_rars;
uint32_t rar_aggr_level = 2; uint32_t rar_aggr_level = 2;
static const uint32_t PRACH_RAR_OFFSET = 3; // TS 36.321 Sec. 5.1.4 static const uint32_t PRACH_RAR_OFFSET = 3; // TS 36.321 Sec. 5.1.4
}; };
} // namespace srsenb } // namespace srsenb

@ -13,10 +13,10 @@
#ifndef SRSRAN_SCHED_LCH_H #ifndef SRSRAN_SCHED_LCH_H
#define SRSRAN_SCHED_LCH_H #define SRSRAN_SCHED_LCH_H
#include "srsran/adt/pool/cached_alloc.h"
#include "srsran/interfaces/sched_interface.h" #include "srsran/interfaces/sched_interface.h"
#include "srsran/mac/pdu.h" #include "srsran/mac/pdu.h"
#include "srsran/srslog/srslog.h" #include "srsran/srslog/srslog.h"
#include <deque>
namespace srsenb { namespace srsenb {
@ -59,7 +59,7 @@ public:
// Control Element Command queue // Control Element Command queue
using ce_cmd = srsran::dl_sch_lcid; using ce_cmd = srsran::dl_sch_lcid;
std::deque<ce_cmd> pending_ces; srsran::deque<ce_cmd> pending_ces;
private: private:
struct ue_bearer_t { struct ue_bearer_t {

Loading…
Cancel
Save