harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r453250 - /incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/ThreadGroup.java
Date Thu, 05 Oct 2006 14:30:39 GMT
Author: tellison
Date: Thu Oct  5 07:30:38 2006
New Revision: 453250

URL: http://svn.apache.org/viewvc?view=rev&rev=453250
Log:
Make objects used for locking more easily identifiable.
(Reference code in luni kernel)

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/ThreadGroup.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/ThreadGroup.java?view=diff&rev=453250&r1=453249&r2=453250
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/ThreadGroup.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni-kernel/src/main/java/java/lang/ThreadGroup.java
Thu Oct  5 07:30:38 2006
@@ -55,10 +55,12 @@
     private ThreadGroup[] childrenGroups = new ThreadGroup[3];
 
     // Locked when using the childrenGroups field
-    private Object childrenGroupsLock = new Object();
+    private class ChildrenGroupsLock {}
+    private Object childrenGroupsLock = new ChildrenGroupsLock();
 
     // Locked when using the childrenThreads field
-    private Object childrenThreadsLock = new Object();
+    private class ChildrenThreadsLock {}
+    private Object childrenThreadsLock = new ChildrenThreadsLock();
 
     // Whether this ThreadGroup is a daemon ThreadGroup or not
     private boolean isDaemon;



Mime
View raw message