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


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

Re: Lightweight postDelayed / removeCallbacks

From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: Lightweight postDelayed / removeCallbacks
Date 2012-02-06 01:35 +0100
Organization albasani.net
Message-ID <jgn789$6d6$1@news.albasani.net> (permalink)
References <jgk1q9$9o1$1@news.albasani.net> <ipa309-7pn.ln1@news.simpsonst.f2s.com> <jgn62j$4de$1@news.albasani.net>

Show all headers | View raw


Jan Burse schrieb:
> ---------------- Begin Code ------------------

Correction:

     private TimerEntry take() throws InterruptedException {
         synchronized (entrylock) {
             for (; ; ) {

Since wait() and wait(int) anyway kind of
release the lock. See also the DelayQueue
implementation in java.util.concurrent.

Bye

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


Thread

Lightweight postDelayed / removeCallbacks Jan Burse <janburse@fastmail.fm> - 2012-02-04 20:44 +0100
  Re: Lightweight postDelayed / removeCallbacks Steven Simpson <ss@domain.invalid> - 2012-02-05 22:00 +0000
    Re: Lightweight postDelayed / removeCallbacks Jan Burse <janburse@fastmail.fm> - 2012-02-06 01:15 +0100
      Re: Lightweight postDelayed / removeCallbacks Jan Burse <janburse@fastmail.fm> - 2012-02-06 01:35 +0100

csiph-web