Bugzilla – Attachment #3176: Proposed patch for bug #2987
NS_LOG_FUNCTION (this << impl << ts << context << uid);
}
void
EventId::Remove (void)
{
NS_LOG_FUNCTION (this);
Simulator::Remove (*this);
EventId::Cancel (void)
* \param [in] uid The unique id for this EventId.
*/
EventId (const Ptr<EventImpl> &impl, uint64_t ts, uint32_t context, uint32_t uid);
/**
* This method is syntactic sugar for the ns3::Simulator::Remove
* method.
void Remove (void);
* This method is syntactic sugar for the ns3::Simulator::Cancel
NS_LOG_DEBUG ("WifiRadioEnergyModel:Energy is changed!");
if (m_currentState != WifiPhyState::OFF)
m_switchToOffEvent.Cancel ();
m_switchToOffEvent.Remove ();
Time durationToOff = GetMaximumTimeInState (m_currentState);
m_switchToOffEvent = Simulator::Schedule (durationToOff, &WifiRadioEnergyModel::ChangeState, this, WifiPhyState::OFF);
-