Переглянути джерело

Initialize progression_hook_rwlock and tag_global_rwlock before they have to be used.

Cyril Roelandt 12 роки тому
батько
коміт
defec827d3
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      src/core/workers.c

+ 4 - 4
src/core/workers.c

@@ -623,6 +623,10 @@ int starpu_init(struct starpu_conf *user_conf)
 	}
 	_starpu_conf_check_environment(config.conf);
 
+	_starpu_init_progression_hooks();
+
+	_starpu_init_tags();
+
 #ifdef STARPU_USE_FXT
 	_starpu_start_fxt_profiling();
 #endif
@@ -661,10 +665,6 @@ int starpu_init(struct starpu_conf *user_conf)
 	/* Launch "basic" workers (ie. non-combined workers) */
 	_starpu_launch_drivers(&config);
 
-	_starpu_init_progression_hooks();
-
-	_starpu_init_tags();
-
 	_STARPU_PTHREAD_MUTEX_LOCK(&init_mutex);
 	initialized = INITIALIZED;
 	/* Tell everybody that we initialized */