Update of /cvsroot/jfreechart/jcommon/source/org/jfree/util
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv19923/source/org/jfree/util
Modified Files:
WaitingImageObserver.java
Log Message:
Optimized the notification of listeners on the ImageObserver for best
performance.
Index: WaitingImageObserver.java
===================================================================
RCS file: /cvsroot/jfreechart/jcommon/source/org/jfree/util/WaitingImageObserver.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** WaitingImageObserver.java 28 Jun 2006 17:11:57 -0000 1.5
--- WaitingImageObserver.java 28 Jun 2006 17:15:14 -0000 1.6
***************
*** 122,125 ****
--- 122,126 ----
this.lock = false;
this.error = false;
+ notifyAll();
return false;
}
***************
*** 128,134 ****
this.lock = false;
this.error = true;
return false;
}
! notifyAll();
return true;
}
--- 129,136 ----
this.lock = false;
this.error = true;
+ notifyAll();
return false;
}
! //notifyAll();
return true;
}
|