// Copyright © 2001-2002 // iWay Technology Company // Boulder, Colorado USA // http://www.iwaytechnology.com // // A limited right to copy this page for individual // (non-commercial) educational use only is hereby // granted. // // IWAY PUBLISHING COMPANY MAKES NO REPRESENTATIONS OR // WARRANTIES ABOUT THE SUITABILITY OF THIS SOFTWARE, // EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED // TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS // FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IWAY // PUBLISHING COMPANY SHALL NOT BE LIABLE FOR ANY // DAMAGES SUFFERED AS A RESULT OF USING, MODIFYING OR // OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. // package iwaypublishing.util; public abstract class IThreadTerminationMonitor extends Thread { // Should this thread terminate itself (and return) on wakeup? protected boolean terminateUponWakeup_ = false; // Not initially /******************************************************************/ public synchronized void terminateUponWakeup( boolean terminateUponWakeup ) { terminateUponWakeup_ = terminateUponWakeup; } /******************************************************************/ public synchronized boolean terminateUponWakeup() { return terminateUponWakeup_; } /******************************************************************/ public abstract void run(); }