cancel pending events upon RLC disposal

This commit is contained in:
Nicola Baldo
2012-12-03 17:46:35 +01:00
parent b4c0f917fb
commit ef2a1a7260
8 changed files with 33 additions and 0 deletions

View File

@@ -90,6 +90,15 @@ LteRlcAm::GetTypeId (void)
return tid;
}
void
LteRlcAm::DoDispose ()
{
NS_LOG_FUNCTION (this);
m_pollRetransmitTimer.Cancel ();
m_reorderingTimer.Cancel ();
m_statusProhibitTimer.Cancel ();
}
/**
* RLC SAP

View File

@@ -39,6 +39,7 @@ public:
LteRlcAm ();
virtual ~LteRlcAm ();
static TypeId GetTypeId (void);
virtual void DoDispose ();
/**
* RLC SAP

View File

@@ -59,6 +59,13 @@ LteRlcTm::GetTypeId (void)
return tid;
}
void
LteRlcTm::DoDispose ()
{
NS_LOG_FUNCTION (this);
m_rbsTimer.Cancel ();
}
/**
* RLC SAP

View File

@@ -38,6 +38,7 @@ public:
LteRlcTm ();
virtual ~LteRlcTm ();
static TypeId GetTypeId (void);
virtual void DoDispose ();
/**
* RLC SAP

View File

@@ -67,6 +67,13 @@ LteRlcUm::GetTypeId (void)
return tid;
}
void
LteRlcUm::DoDispose ()
{
NS_LOG_FUNCTION (this);
m_reorderingTimer.Cancel ();
m_rbsTimer.Cancel ();
}
/**
* RLC SAP

View File

@@ -38,6 +38,7 @@ public:
LteRlcUm ();
virtual ~LteRlcUm ();
static TypeId GetTypeId (void);
virtual void DoDispose ();
/**
* RLC SAP

View File

@@ -108,6 +108,12 @@ TypeId LteRlc::GetTypeId (void)
return tid;
}
void
LteRlcSm::DoDispose ()
{
NS_LOG_FUNCTION (this);
}
void
LteRlc::SetRnti (uint16_t rnti)
{

View File

@@ -148,6 +148,7 @@ public:
LteRlcSm ();
virtual ~LteRlcSm ();
static TypeId GetTypeId (void);
virtual void DoDispose ();
virtual void DoTransmitPdcpPdu (Ptr<Packet> p);
virtual void DoNotifyTxOpportunity (uint32_t bytes, uint8_t layer, uint8_t harqId);