directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r440224 - /directory/trunks/mina/core/src/main/java/org/apache/mina/filter/thread/LeaderFollowersThreadPool.java
Date Tue, 05 Sep 2006 03:02:05 GMT
Author: trustin
Date: Mon Sep  4 20:02:04 2006
New Revision: 440224

URL: http://svn.apache.org/viewvc?view=rev&rev=440224
Log:
* Removed unnecessary synchronization block
* Renamee an old parameter

Modified:
    directory/trunks/mina/core/src/main/java/org/apache/mina/filter/thread/LeaderFollowersThreadPool.java

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/filter/thread/LeaderFollowersThreadPool.java
URL: http://svn.apache.org/viewvc/directory/trunks/mina/core/src/main/java/org/apache/mina/filter/thread/LeaderFollowersThreadPool.java?view=diff&rev=440224&r1=440223&r2=440224
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/filter/thread/LeaderFollowersThreadPool.java
(original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/filter/thread/LeaderFollowersThreadPool.java
Mon Sep  4 20:02:04 2006
@@ -253,17 +253,14 @@
      *
      * @return A non-null {@link Runnable}
      */
-    protected Runnable fetchRunnable( Queue unfetchedSessionBuffers )
+    protected Runnable fetchRunnable( Queue unfetchedRunnables )
     {
-        return ( Runnable ) unfetchedSessionBuffers.pop();
+        return ( Runnable ) unfetchedRunnables.pop();
     }
 
     public void submit( Runnable runnable )
     {
-        synchronized( unfetchedRunnables )
-        {
-            unfetchedRunnables.add( runnable );
-        }
+        unfetchedRunnables.add( runnable );
     }
 
     private class Worker extends Thread



Mime
View raw message