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


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

Re: Race conditions with

From "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Subject Re: Race conditions with
Message-ID <1168310168.081888.228060@i15g2000cwa.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <45a2aef0$0$300$426a74cc@news.free.fr>
Date 2011-04-27 15:28 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui

Richard wrote:
> Richard
> Daniel Pitts a =E9crit :
> > Richard wrote:
> >> Hello,
> >>
> >> Is there an easy way to constrain the execution of all the process
> >> methods *before* the execution of the done method?
> >>
> >> My done method prints a final message and the last execution of the
> >> process method (induced by a publish in the doInBackground) prints a
> >> message *after* this last message. It works if I add a sleep(100) at t=
he
> >> end of doInBackground but I don't like this solution which is certainly
> >> not portable.
> >>
> >> Thanks in advance for your help,
> >>
> >> Richard
> > Try flushing your message buffer before returning from the
> > doInBackground()
> >
> No message buffer; I add the message to a JTextArea.
>
Please don't top post...

doInBackground shouldn't interact with any GUI components (thats the
whole point of it)
And messages sent anywhere should be done only in the EDT.

---
 * 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 | Next in thread | Find similar


Thread

Re: Race conditions with "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
  Re: Race conditions with "Richard" <richard@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
    Re: Race conditions with "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
      Re: Race conditions with "Richard" <richard@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
        Re: Race conditions with "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000

csiph-web