dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/runtime/System Environment.cs, 1.16, 1.17


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/runtime/System Environment.cs, 1.16, 1.17
Date: Thu, 20 Nov 2003 05:51:58 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv15853/runtime/System

Modified Files:
        Environment.cs 
Log Message:


Add the "Environment.ProcessorCount" property for 1.2 compatibility.


Index: Environment.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Environment.cs,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Environment.cs      20 Aug 2003 03:31:03 -0000      1.16
--- Environment.cs      20 Nov 2003 05:51:55 -0000      1.17
***************
*** 254,257 ****
--- 254,270 ----
                        }
  
+ #if CONFIG_FRAMEWORK_1_2
+ 
+       // Get the number of processors in this machine.
+       public static int ProcessorCount
+                       {
+                               get
+                               {
+                                       return InfoMethods.GetProcessorCount();
+                               }
+                       }
+ 
+ #endif // CONFIG_FRAMEWORK_1_2
+ 
        // Expand environment variable references in a string.
        public static String ExpandEnvironmentVariables(String name)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]