Forráskód Böngészése

merge trunk@9587: src: fix simgrid code

Nathalie Furmento 12 éve
szülő
commit
5fa41abc60
2 módosított fájl, 3 hozzáadás és 3 törlés
  1. 2 2
      src/common/thread.c
  2. 1 1
      src/core/simgrid.c

+ 2 - 2
src/common/thread.c

@@ -40,9 +40,9 @@ int starpu_pthread_create_on(char *name, starpu_pthread_t *thread, const starpu_
 	return 0;
 }
 
-int starpu_pthread_create(char *name, starpu_pthread_t *thread, const starpu_pthread_attr_t *attr, void *(*start_routine) (void *), void *arg)
+int starpu_pthread_create(starpu_pthread_t *thread, const starpu_pthread_attr_t *attr, void *(*start_routine) (void *), void *arg)
 {
-	return starpu_pthread_create_on(name, thread, attr, start_routine, arg, 0);
+	return starpu_pthread_create_on("", thread, attr, start_routine, arg, 0);
 }
 
 int starpu_pthread_join(starpu_pthread_t thread, void **retval)

+ 1 - 1
src/core/simgrid.c

@@ -346,7 +346,7 @@ int _starpu_simgrid_transfer(size_t size, unsigned src_node, unsigned dst_node,
 int
 _starpu_simgrid_thread_start(int argc STARPU_ATTRIBUTE_UNUSED, char *argv[] STARPU_ATTRIBUTE_UNUSED)
 {
-	struct starpu_pthread_args *args = MSG_process_get_data(MSG_process_self());
+	struct _starpu_pthread_args *args = MSG_process_get_data(MSG_process_self());
 	args->f(args->arg);
 	free(args);
 	return 0;