src/simulator/realtime-simulator-impl.cc
changeset 5507 915abd2b907b
parent 5302 5ed72d440db4
child 5521 37c6c83d4252
equal deleted inserted replaced
5506:8a51fa38a4ee 5507:915abd2b907b
   120         }
   120         }
   121     }
   121     }
   122 }
   122 }
   123 
   123 
   124 void
   124 void
   125 RealtimeSimulatorImpl::SetScheduler (Ptr<Scheduler> scheduler)
   125 RealtimeSimulatorImpl::SetScheduler (ObjectFactory schedulerFactory)
   126 {
   126 {
   127   NS_LOG_FUNCTION_NOARGS ();
   127   NS_LOG_FUNCTION_NOARGS ();
       
   128 
       
   129   Ptr<Scheduler> scheduler = schedulerFactory.Create<Scheduler> ();
   128 
   130 
   129   { 
   131   { 
   130     CriticalSection cs (m_mutex);
   132     CriticalSection cs (m_mutex);
   131 
   133 
   132     if (m_events != 0)
   134     if (m_events != 0)