[Ns-bugs] [Bug 1410] Assert in DefaultSimulatorImpl breaks Visualizer module

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Apr 18 15:13:28 PDT 2012


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1410

--- Comment #3 from Mathieu Lacage <mathieu.lacage at gmail.com> 2012-04-18 18:13:28 EDT ---
(In reply to comment #2)
> So, the problem is nailed down to src/visualizer/model/pyviz.cc:321, where
> there is Schedule that is performed from GUI thread. 
> Unfortunately, I cannot just replace it with ScheduleWithContext.   The reason,
> which bothered me several times already, is in the fact that when you schedule
> without context, you can get EventId and later cancel the event if necessary.  
> When ScheduleWithContext, you're not getting EventId and have no means to
> cancel the event.  I didn't look into detail, but is it something fundamental? 

yes, unfortunately. We do not want to allow multi-threaded access to the
EventId: that would cost too much performance wise.

> Why ScheduleWithContext returns void?
> 
> Is there any other way to solve src/visualizer/model/pyviz.cc:321 ?

Without looking at the code, I would say that you would need to figure out how
to rewrite the code to not need the EventId.

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list