Просмотр исходного кода

Fix duplicate variables definition and qualifiers

Samuel Thibault лет назад: 12
Родитель
Сommit
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
  */