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


Groups > comp.lang.java.programmer > #23108

Re: polling IRQs in a thread's code

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: polling IRQs in a thread's code
Date 2013-03-24 22:57 -0400
Organization The Wasteland
Message-ID <nospam-1218C9.22571124032013@news.aioe.org> (permalink)
References <thread-20130324233549@ram.dialup.fu-berlin.de>

Show all headers | View raw


In article <thread-20130324233549@ram.dialup.fu-berlin.de>,
 ram@zedat.fu-berlin.de (Stefan Ram) wrote:

>   The user can request the thread to end using a GUI button.
>   The thread has to check often whether the user has requested
>   this, and then has to stop.

Also consider SwingWorker<T,V>. You can publish intermediate 
results from within your implementation of doInBackground() and 
reliably update the GUI from process(), which executes on the EDT. 
This related example also illustrates using cancel():

<https://sites.google.com/site/drjohnbmatthews/randomdata>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: polling IRQs in a thread's code "John B. Matthews" <nospam@nospam.invalid> - 2013-03-24 22:57 -0400
  Re: polling IRQs in a thread's code markspace <markspace@nospam.nospam> - 2013-03-24 21:16 -0700

csiph-web