jdk/test/java/util/concurrent/BlockingQueue/OfferDrainToLoops.java
changeset 32649 2ee9017c7597
parent 9242 ef138d47df58
child 34347 4a17f9e90a0f
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    91             }
    91             }
    92             /** Polls occasionally for quitting time. */
    92             /** Polls occasionally for quitting time. */
    93             protected boolean quittingTime(long i) {
    93             protected boolean quittingTime(long i) {
    94                 return (i % 1024) == 0 && quittingTime();
    94                 return (i % 1024) == 0 && quittingTime();
    95             }
    95             }
    96             abstract protected void realRun();
    96             protected abstract void realRun();
    97             public void run() {
    97             public void run() {
    98                 try { realRun(); } catch (Throwable t) { unexpected(t); }
    98                 try { realRun(); } catch (Throwable t) { unexpected(t); }
    99             }
    99             }
   100         }
   100         }
   101 
   101