classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: Made PixelGrabber more robust


From: Roman Kennke
Subject: [cp-patches] FYI: Made PixelGrabber more robust
Date: Thu, 18 Aug 2005 15:41:04 +0200

I added a try catch clause in the pixel grabber thread that lets the
PixelGrabber exit gracefully when an exception is thrown in the
ImageProducer. Most importantly it calls notifyAll() to release waiting
Threads. Also I added some null pointer checks.

2005-08-18  Roman Kennke  <address@hidden>

        * java/awt/image/PixelGrabber.java
        (constructors): Check if the ImageProducer is null and throw
        a NPE if that is the case.
        (startGrabbing): When an exception is thrown in the grabber
        thread, exit gracefully and notify the waiting threads.
        (imageComplete): Only call ip.removeConsumer() if ip is not
        null.

/Roman

Attachment: PixelGrabber.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]