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

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

[Dotgnu-pnet-commits] pnet/engine int_proto.h, 1.91, 1.92 int_table.c, 1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnet/engine int_proto.h, 1.91, 1.92 int_table.c, 1.94, 1.95 lib_info.c, 1.6, 1.7
Date: Thu, 20 Nov 2003 05:51:33 +0000

Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv15782/engine

Modified Files:
        int_proto.h int_table.c lib_info.c 
Log Message:


Add the "InfoMethods.GetProcessorCount" internalcall.


Index: lib_info.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_info.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** lib_info.c  19 Sep 2003 02:12:44 -0000      1.6
--- lib_info.c  20 Nov 2003 05:51:31 -0000      1.7
***************
*** 141,144 ****
--- 141,153 ----
  
  /*
+  * public static int GetProcessorCount();
+  */
+ ILInt32 _IL_InfoMethods_GetProcessorCount(ILExecThread *thread)
+ {
+       /* Simulate a uniprocessor machine */
+       return 1;
+ }
+ 
+ /*
   * public static String GetGlobalConfigDir();
   */

Index: int_proto.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/int_proto.h,v
retrieving revision 1.91
retrieving revision 1.92
diff -C2 -d -r1.91 -r1.92
*** int_proto.h 13 Nov 2003 22:17:49 -0000      1.91
--- int_proto.h 20 Nov 2003 05:51:30 -0000      1.92
***************
*** 572,575 ****
--- 572,576 ----
  extern ILString * _IL_InfoMethods_GetUserName(ILExecThread * _thread);
  extern ILInt64 _IL_InfoMethods_GetWorkingSet(ILExecThread * _thread);
+ extern ILInt32 _IL_InfoMethods_GetProcessorCount(ILExecThread * _thread);
  extern ILString * _IL_InfoMethods_GetPlatformName(ILExecThread * _thread);
  extern ILString * _IL_InfoMethods_GetGlobalConfigDir(ILExecThread * _thread);

Index: int_table.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/int_table.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** int_table.c 13 Nov 2003 22:17:50 -0000      1.94
--- int_table.c 20 Nov 2003 05:51:30 -0000      1.95
***************
*** 2570,2573 ****
--- 2570,2574 ----
        IL_METHOD("GetUserName", "()oSystem.String;", 
_IL_InfoMethods_GetUserName, marshal_pp)
        IL_METHOD("GetWorkingSet", "()l", _IL_InfoMethods_GetWorkingSet, 
marshal_lp)
+       IL_METHOD("GetProcessorCount", "()i", 
_IL_InfoMethods_GetProcessorCount, marshal_ip)
        IL_METHOD("GetPlatformName", "()oSystem.String;", 
_IL_InfoMethods_GetPlatformName, marshal_pp)
        IL_METHOD("GetGlobalConfigDir", "()oSystem.String;", 
_IL_InfoMethods_GetGlobalConfigDir, marshal_pp)





reply via email to

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