Преглед на файлове

Fix duplicate variables definition and qualifiers

Samuel Thibault преди 12 години
родител
ревизия
67309a713f
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      socl/src/init.c
  2. 2 2
      socl/src/init.h

+ 1 - 1
socl/src/init.c

@@ -23,7 +23,7 @@
 #include "mem_objects.h"
 
 int _starpu_init_failed;
-int _starpu_init = 0;
+volatile int _starpu_init = 0;
 static pthread_mutex_t _socl_mutex = PTHREAD_MUTEX_INITIALIZER;
 static struct starpu_conf conf;
 

+ 2 - 2
socl/src/init.h

@@ -23,8 +23,8 @@
 #ifndef SOCL_INIT_H
 #define SOCL_INIT_H
 
-int _starpu_init_failed;
-volatile int _starpu_init;
+extern int _starpu_init_failed;
+extern volatile int _starpu_init;
 /**
  * Initialize StarPU
  */