Bugzilla – Attachment #675: quick-and-dirty patch for bug #749
NS_LOG_INFO ("EmuNetDevice::ReadThread(): Received packet");
NS_LOG_INFO ("EmuNetDevice::ReadThread(): Scheduling handler");
DynamicCast<RealtimeSimulatorImpl> (Simulator::GetImplementation ())->ScheduleRealtimeNow (
Ptr<RealtimeSimulatorImpl> sched = DynamicCast<RealtimeSimulatorImpl> (Simulator::GetImplementation ());
MakeEvent (&EmuNetDevice::ForwardUp, this, buf, len));
sched->ScheduleRealtimeNow (MakeEvent (&EmuNetDevice::ForwardUp, this, buf, len),
GetNode ()->GetId ());
buf = 0;
}
// Schedule an event for a _relative_ time in the future.
//
void
RealtimeSimulatorImpl::ScheduleRealtime (Time const &time, EventImpl *impl)
RealtimeSimulatorImpl::ScheduleRealtime (Time const &time, EventImpl *impl, uint32_t context)
{
NS_LOG_FUNCTION (time << impl);
ev.impl = impl;
ev.key.m_ts = ts;
ev.key.m_uid = m_uid;
ev.key.m_context = context;
m_uid++;
m_unscheduledEvents++;
m_events->Insert (ev);
RealtimeSimulatorImpl::ScheduleRealtimeNow (EventImpl *impl)
RealtimeSimulatorImpl::ScheduleRealtimeNow (EventImpl *impl, uint32_t context)
NS_LOG_FUNCTION_NOARGS ();
virtual void SetScheduler (ObjectFactory schedulerFactory);
virtual uint32_t GetContext (void) const;
void ScheduleRealtime (Time const &time, EventImpl *event);
void ScheduleRealtime (Time const &time, EventImpl *event, uint32_t context=0);
void ScheduleRealtimeNow (EventImpl *event);
void ScheduleRealtimeNow (EventImpl *event, uint32_t context=0);
Time RealtimeNow (void) const;
void SetSynchronizationMode (RealtimeSimulatorImpl::SynchronizationMode mode);