[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] javax.swing.Timer rewrite
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] javax.swing.Timer rewrite |
Date: |
Mon, 14 Nov 2005 21:48:18 +0100 |
On Mon, 2005-11-14 at 00:13 +0100, Mark Wielaard wrote:
> 2005-11-13 Mark Wielaard <address@hidden>
>
> As suggested by Joao Victor <address@hidden>:
> * javax/swing/Timer.java (Waker): Removed class.
> (Task): New class.
> (timer): New field.
> (running): Removed field.
> (waker): Likewise.
> (task): New field.
> (isRunning): Check whether task is null.
> (start): Create task and schedule it with timer.
> (stop): Cancel task and clear field.
> (queueEvent): Synchronized on queueLock.
>
> It would be appreciated if someone could try out this patch and see if
> it works as expected. Mauve tests all pass and the programs that I
> tested seem to work as expected.
Tested against the new JProgressBar Demo and it seems to work nicely. It
now uses just one util.Timer for everything instead of starting multiple
Threads for this. Committed.
Cheers,
Mark
signature.asc
Description: This is a digitally signed message part