mirror of https://github.com/PentHertz/srsLTE.git
enb,mac_nr: turn UE object into normal std::unique_ptr
This commit is contained in:
parent
b3ab661261
commit
921a04ce65
|
@ -99,7 +99,8 @@ private:
|
|||
// Map of active UEs
|
||||
pthread_rwlock_t rwlock = {};
|
||||
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;
|
||||
|
||||
// BCH buffers
|
||||
|
|
|
@ -173,7 +173,7 @@ uint16_t mac_nr::add_ue(uint32_t enb_cc_idx)
|
|||
|
||||
// Allocate and initialize UE object
|
||||
// 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
|
||||
srsran::rwlock_write_guard rw_lock(rwlock);
|
||||
|
|
Loading…
Reference in New Issue