directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r351885 - /directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/support/SocketIoProcessor.java
Date Sat, 03 Dec 2005 04:23:57 GMT
Author: trustin
Date: Fri Dec  2 20:23:53 2005
New Revision: 351885

URL: http://svn.apache.org/viewcvs?rev=351885&view=rev
Log:
Related issue: DIRMINA-119 Multiple selector loops
* SocketIoProcessor overrides the system property to tell user the number of the processors
employed actually.

Modified:
    directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/support/SocketIoProcessor.java

Modified: directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/support/SocketIoProcessor.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/support/SocketIoProcessor.java?rev=351885&r1=351884&r2=351885&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/support/SocketIoProcessor.java
(original)
+++ directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/support/SocketIoProcessor.java
Fri Dec  2 20:23:53 2005
@@ -578,6 +578,8 @@
                 ExceptionMonitor.getInstance().exceptionCaught( e );
             }
             processors = Math.max( processors, 1 );
+            
+            System.setProperty( PROCESSORS_PROPERTY, String.valueOf( processors ) );
         }
 
         return processors;



Mime
View raw message