harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r443191 - /incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Thread.java
Date Thu, 14 Sep 2006 02:01:50 GMT
Author: ndbeyer
Date: Wed Sep 13 19:01:49 2006
New Revision: 443191

URL: http://svn.apache.org/viewvc?view=rev&rev=443191
Log:
Add 'setInterruptAction(Runnable)' back to Thread; add warning suppression for unused method.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Thread.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Thread.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Thread.java?view=diff&rev=443191&r1=443190&r2=443191
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Thread.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/Thread.java
Wed Sep 13 19:01:49 2006
@@ -232,6 +232,19 @@
     }
 
     /**
+     * Set the action to be executed when interruption, which is probably be
+     * used to implement the interruptible channel. The action is null by
+     * default. And if this method is invoked by passing in a non-null value,
+     * this action's run() method will be invoked in <code>interrupt()</code>.
+     * 
+     * @param action the action to be executed when interruption
+     */
+    @SuppressWarnings("unused")
+    private void setInterruptAction(Runnable action) {
+        this.action = action;
+    }
+
+    /**
      * Returns the number of active threads in the running thread's ThreadGroup
      * 
      * @return Number of Threads



Mime
View raw message