Added map to keep discardTimers in PDCP NR entity.

master
Pedro Alvarez 5 years ago committed by Andre Puschmann
parent 8810f35498
commit 60feab3d7b

@ -101,6 +101,7 @@ private:
// Discard callback (discardTimer)
class discard_callback;
std::map<uint32_t, timer_handler::unique_timer> discard_timers_map;
// COUNT overflow protection
bool tx_overflow = false;

@ -109,6 +109,7 @@ void pdcp_entity_nr::write_sdu(unique_byte_buffer_t sdu, bool blocking)
discard_callback discard_fnc(this, tx_next);
discard_timer.set(static_cast<uint32_t>(cfg.discard_timer), discard_fnc);
discard_timer.run();
discard_timers_map.insert(std::make_pair(tx_next, std::move(discard_timer)));
log->debug("Discard Timer set for SN %" PRIu32 ". Timeout: %" PRIu32 "ms\n",
tx_next,
static_cast<uint32_t>(cfg.discard_timer));

Loading…
Cancel
Save