You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2008/12/02 20:23:17 UTC
svn commit: r722581 -
/myfaces/trinidad/branches/1.2.10.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java
Author: matzew
Date: Tue Dec 2 11:23:17 2008
New Revision: 722581
URL: http://svn.apache.org/viewvc?rev=722581&view=rev
Log:
This is now both a faster thread-safe implementation and does support the remove operation on its Iterator
Modified:
myfaces/trinidad/branches/1.2.10.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java
Modified: myfaces/trinidad/branches/1.2.10.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/1.2.10.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java?rev=722581&r1=722580&r2=722581&view=diff
==============================================================================
--- myfaces/trinidad/branches/1.2.10.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java (original)
+++ myfaces/trinidad/branches/1.2.10.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ThreadLocalUtils.java Tue Dec 2 11:23:17 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<?>>>();
}
/**