harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r539728 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/ImageDecoder.java
Date Sat, 19 May 2007 11:12:11 GMT
Author: ayza
Date: Sat May 19 04:12:11 2007
New Revision: 539728

URL: http://svn.apache.org/viewvc?view=rev&rev=539728
Log:
Applying patch from HARMONY-3602 ([classlib][awt][drlvm][netbeans] ImageDecoder.terminate()
interrupts current thread)

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/ImageDecoder.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/ImageDecoder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/ImageDecoder.java?view=diff&rev=539728&r1=539727&r2=539728
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/ImageDecoder.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/ImageDecoder.java
Sat May 19 04:12:11 2007
@@ -114,23 +114,12 @@
     }
 
     /**
-     * Stops the decoding by interrupting the current decoding thread.
      * Used when all consumers are removed and there's no more need to
      * run the decoder.
      */
     public void terminate() {
         src.lockDecoder(this);
         closeStream();
-
-        AccessController.doPrivileged(
-                new PrivilegedAction<Void>() {
-                    public Void run() {
-                        Thread.currentThread().interrupt();
-                        return null;
-                    }
-                }
-        );
-
         terminated = true;
     }
 



Mime
View raw message