myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r722586 - /myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java
Date Tue, 02 Dec 2008 19:29:39 GMT
Author: matzew
Date: Tue Dec  2 11:29:39 2008
New Revision: 722586

URL: http://svn.apache.org/viewvc?rev=722586&view=rev
Log:
This is now both a faster thread-safe implementation and does support the remove operation
on its Iterator

Modified:
    myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java

Modified: myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java?rev=722586&r1=722585&r2=722586&view=diff
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java
(original)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java
Tue Dec  2 11:29:39 2008
@@ -26,7 +26,7 @@
 import java.util.List;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.CopyOnWriteArrayList;
+import java.util.concurrent.ConcurrentLinkedQueue;
 
 /**
  * Utility functions related to ThreadLocals.
@@ -166,7 +166,7 @@
     public ResettableThreadLocalManager()
     {
       // create the list of resettable ThreadLocals for this group
-      _threadLocals = new CopyOnWriteArrayList<WeakReference<ThreadLocal<?>>>();
+      _threadLocals = new ConcurrentLinkedQueue<WeakReference<ThreadLocal<?>>>();
     }
     
     /**



Mime
View raw message