/[classpath]/classpath/gnu/java/nio/SelectorImpl.java
ViewVC logotype

Diff of /classpath/gnu/java/nio/SelectorImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by mark, Thu Jun 24 17:24:12 2004 UTC revision 1.16 by patrik_reali, Sat Jul 31 16:07:21 2004 UTC
# Line 53  import gnu.classpath.Configuration; Line 53  import gnu.classpath.Configuration;
53    
54  public class SelectorImpl extends AbstractSelector  public class SelectorImpl extends AbstractSelector
55  {  {
   static  
   {  
     // load the shared library needed for native methods.  
     if (Configuration.INIT_LOAD_LIBRARY)  
       {  
         System.loadLibrary ("javanio");  
       }  
   }  
56        
57    private Set keys;    private Set keys;
58    private Set selected;    private Set selected;
# Line 140  public class SelectorImpl extends Abstra Line 132  public class SelectorImpl extends Abstra
132      return select (0);      return select (0);
133    }    }
134    
   // A timeout value of 0 means block forever.  
   private static native int implSelect (int[] read, int[] write,  
                                         int[] except, long timeout)  
     throws IOException;  
   
135    private final int[] getFDsAsArray (int ops)    private final int[] getFDsAsArray (int ops)
136    {    {
137      int[] result;      int[] result;
# Line 237  public class SelectorImpl extends Abstra Line 224  public class SelectorImpl extends Abstra
224              try              try
225                {                {
226                  begin();                  begin();
227                  result = implSelect (read, write, except, timeout);                  result = VMSelector.select (read, write, except, timeout);
228                }                }
229              finally              finally
230                {                {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26