Felix>You mean as a guard before we use isEventDispatchThread?

Exactly. It would be good if there are other ways to tell if code is
running "in the event dispatch thread", however I can't find that in the
awt api, so it has to be something tied to JMeter.  "instanceof
JMeterThread" was just the first thing that came to my mind.

Vladimir> For invokeLater I think we can cache
Vladimir> Toolkit.getDefaultToolit().getSystemEventQueue() and then use
Vladimir> eventQueue.postEvent(new InvocationEvent(toolkit, runnable)).
Felix>Is that a common way to optimize awt programs?

To be honest, I've very little experience with swing/awt/whatever ui
programming in java, and those suggestions are based just on my analysis of
the thread dumps.

Vladimir

Reply via email to