/[gzz]/gzz/gzz/client/AbstractUpdateManager.java
ViewVC logotype

Diff of /gzz/gzz/client/AbstractUpdateManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by tjl, Tue Jan 14 08:58:17 2003 UTC revision 1.30 by tjl, Sat Jan 18 13:30:58 2003 UTC
# Line 338  public static final String rcsid = "$Id$ Line 338  public static final String rcsid = "$Id$
338       * @return true if something was done.       * @return true if something was done.
339       */       */
340      protected boolean doIdle() {      protected boolean doIdle() {
341            Runnable r;
342          synchronized(queue) {          synchronized(queue) {
343              Runnable r = (Runnable)queue.getAndRemoveLowest();              r = (Runnable)queue.getAndRemoveLowest();
344              if(r != null) {          }
345                  if(dbg) pa("Updmanager idle: run "+r);          if(r != null) {
346                  r.run();              if(dbg) pa("Updmanager idle: run "+r);
347                  if(dbg) pa("Updmanager idle: finished  run "+r);              r.run();
348                  return true;              if(dbg) pa("Updmanager idle: finished  run "+r);
349              }              return true;
350          }          }
351          return false;          return false;
352      }      }
# Line 392  MAINEVENTLOOP: while(true) try { Line 393  MAINEVENTLOOP: while(true) try {
393    
394                  System.gc();                  System.gc();
395                  // Wait for next event                  // Wait for next event
396                    if(dbg) pa("Updmanager: WAIT FOR EVENT!!!");
397                  handleEvents(true);                  handleEvents(true);
398              }              }
399              // Thread.yield(); // Again, try to let the evena thread have control.              // Thread.yield(); // Again, try to let the evena thread have control.

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26