Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(31)

Unified Diff: model/dce.cc

Issue 7635043: Change Scheduling of event according to NS-3 requisite: ie use only the main thread to
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | model/linux-socket-fd-factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: model/dce.cc
===================================================================
--- a/model/dce.cc
+++ b/model/dce.cc
@@ -551,8 +551,11 @@
{
return 0;
}
- current->process->itimer = Simulator::Schedule (UtilsTimevalToTime (value->it_value),
- &Itimer, current->process);
+ TaskManager *manager = TaskManager::Current ();
+ current->process->itimer = manager->ScheduleMain (
+ UtilsTimevalToTime (value->it_value),
+ MakeEvent (&Itimer, current->process));
+
return 0;
}
char * dce_getcwd (char *buf, size_t size)
« no previous file with comments | « no previous file | model/linux-socket-fd-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b