You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Andre Taube <an...@corp.buildpoint.com> on 2000/07/25 19:05:03 UTC
src/org/apache/fop/image/GifJpegImage.java
Comparing files src/org/apache/fop/image/GifJpegImage.java and
src/org/apache/fop/image/GifJpegImage-fixed.java
***** GifJpegImage.java
93: FopImageConsumer consumer = new FopImageConsumer(this);
94: ip.startProduction(consumer);
95: synchronized (imageWait) {
96: imageWait.wait();
***** GIFJPEGIMAGE-FIXED.JAVA
93: FopImageConsumer consumer = new FopImageConsumer(this);
94: synchronized (imageWait) {
95: ip.startProduction(consumer);
96: imageWait.wait();
*****
Original code hangs in multi-threaded environment (running as a servlet),
because synchronized(imageWait) is executed after producer is done.
Alex Treyger alex.treyger@buildpoint.com
<ma...@buildpoint.com>
Andre Taube andre.taube@buildpoint.com <ma...@buildpoint.com>
BuildPoint Corp.
2200 Bridge Pkwy, suite 103.
Redwood City, CA 94065
USA