Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3950

Re: Worker Threads and ED

From "Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this>
Subject Re: Worker Threads and ED
Message-ID <AoadnUR-8ZjbEj3VnZ2dnUVZ_uGdnZ2d@comcast.com> (permalink)
Newsgroups comp.lang.java.gui
References <4C%nk.126079$kx.82177@pd7urf3no>
Date 2011-04-27 15:47 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui

<i.dont.need@any.more.email> wrote in message 
news:4C%nk.126079$kx.82177@pd7urf3no...
> Thanks, AOP and bytecode injection were the only possibilities that sprang 
> to mind, but I had never tried either. At the moment, my attention has 
> been diverted to another project, but the ThreadCheckingRepaintManager 
> class mentioned earlier has already given me something to chew on.

That is simple enough, but it will catch fewer problems than a
check before every gui call.

> When I get back to this issue, I'll give your aspect a try too.

It has worked out great for me. I was converting a debugger
from EDT-only to having a separate, dedicated debugger
thread. So in addition to checking that gui calls only come
from the EDT, I also needed to verify that all JDI calls
come from the debugger thread. The tests also turned up a
few EDT violations in the software that were totally
unrelated to the debugger.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Worker Threads and EDT "i.dont.need" <i.dont.need@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000
  Re: Worker Threads and ED "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000
    Re: Worker Threads and ED "i.dont.need" <i.dont.need@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000
    Re: Worker Threads and ED "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000
      Re: Worker Threads and ED "jlp" <jlp@THRWHITE.remove-dii-this> - 2011-04-27 15:48 +0000
  Re: Worker Threads and ED "Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000
    Re: Worker Threads and ED "i.dont.need" <i.dont.need@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000
      Re: Worker Threads and ED "Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000

csiph-web