enb,mac_nr: turn UE object into normal std::unique_ptr

master
Andre Puschmann 3 years ago
parent b3ab661261
commit 921a04ce65

@ -99,7 +99,8 @@ private:
// Map of active UEs // Map of active UEs
pthread_rwlock_t rwlock = {}; pthread_rwlock_t rwlock = {};
static const uint16_t FIRST_RNTI = 0x4601; static const uint16_t FIRST_RNTI = 0x4601;
rnti_map_t<unique_rnti_ptr<ue_nr> > ue_db; srsran::static_circular_map<uint16_t, std::unique_ptr<ue_nr>, SRSENB_MAX_UES> ue_db;
std::atomic<uint16_t> ue_counter; std::atomic<uint16_t> ue_counter;
// BCH buffers // BCH buffers

@ -173,7 +173,7 @@ uint16_t mac_nr::add_ue(uint32_t enb_cc_idx)
// Allocate and initialize UE object // Allocate and initialize UE object
// TODO: add sched interface // TODO: add sched interface
unique_rnti_ptr<ue_nr> ue_ptr = make_rnti_obj<ue_nr>(rnti, rnti, enb_cc_idx, nullptr, rrc, rlc, phy, logger); std::unique_ptr<ue_nr> ue_ptr = std::unique_ptr<ue_nr>(new ue_nr(rnti, enb_cc_idx, nullptr, rrc, rlc, phy, logger));
// Add UE to rnti map // Add UE to rnti map
srsran::rwlock_write_guard rw_lock(rwlock); srsran::rwlock_write_guard rw_lock(rwlock);

Loading…
Cancel
Save