directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject svn commit: r471599 - /directory/branches/mina/1.2/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
Date Mon, 06 Nov 2006 01:10:13 GMT
Author: proyal
Date: Sun Nov  5 17:10:12 2006
New Revision: 471599

URL: http://svn.apache.org/viewvc?view=rev&rev=471599
Log:
no need to lock for size

Modified:
    directory/branches/mina/1.2/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java

Modified: directory/branches/mina/1.2/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
URL: http://svn.apache.org/viewvc/directory/branches/mina/1.2/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java?view=diff&rev=471599&r1=471598&r2=471599
==============================================================================
--- directory/branches/mina/1.2/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
(original)
+++ directory/branches/mina/1.2/core/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
Sun Nov  5 17:10:12 2006
@@ -170,10 +170,7 @@
 
     public int getScheduledWriteRequests()
     {
-        synchronized( writeRequestQueue )
-        {
-            return writeRequestQueue.size();
-        }
+        return writeRequestQueue.size();
     }
 
     /**



Mime
View raw message