]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Synchronized isExhausted()
authorPeter Bernard West <pbwest@apache.org>
Sat, 17 Jan 2004 00:16:10 +0000 (00:16 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sat, 17 Jan 2004 00:16:10 +0000 (00:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197205 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/datastructs/SyncedCircularBuffer.java

index 370af72acade49dd0ed9a5eadec8738bde315b09..97c87280acfb12eb30f8c4f14b8524574a97fa19 100644 (file)
@@ -250,7 +250,9 @@ public class SyncedCircularBuffer {
      * has been processed, and the buffer is empty.
      */
     public boolean isExhausted() {
-        return producerFinished && isEmpty(); 
+        synchronized (this) {
+            return producerFinished && isEmpty(); 
+        }
     }
 
 }