Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This change exports the gras_procdata pointer and use the Win32 function GetCurrentPr...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Oct 2007 09:29:37 +0000 (09:29 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Oct 2007 09:29:37 +0000 (09:29 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4845 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/gras/Virtu/rl_process.c

index 4f542af..c3a2920 100644 (file)
@@ -13,7 +13,7 @@
 
 /* globals */
 static gras_procdata_t *_gras_procdata = NULL;
 
 /* globals */
 static gras_procdata_t *_gras_procdata = NULL;
-XBT_EXPORT_NO_IMPORT(char const *) _gras_procname = NULL;
+XBT_PUBLIC_DATA(char const *) _gras_procname = NULL;
 
 void gras_process_init() {
   _gras_procdata=xbt_new0(gras_procdata_t,1);
 
 void gras_process_init() {
   _gras_procdata=xbt_new0(gras_procdata_t,1);
@@ -31,7 +31,7 @@ const char *xbt_procname(void) {
 
 int gras_os_getpid(void) {
 #ifdef _WIN32
 
 int gras_os_getpid(void) {
 #ifdef _WIN32
-   return (long int) GetCurrentProcess();
+   return (long int) GetCurrentProcessId();
 #else
    return (long int) getpid();
 #endif
 #else
    return (long int) getpid();
 #endif