|
@@ -89,7 +89,11 @@ int starpu_pthread_create_on(char *name, starpu_pthread_t *thread, const starpu_
|
|
|
_STARPU_CALLOC(tsd, MAX_TSD+1, sizeof(void*));
|
|
|
*thread = MSG_process_create_with_arguments(name, _starpu_simgrid_thread_start, tsd, host, 2, _args);
|
|
|
#if SIMGRID_VERSION >= 31500 && SIMGRID_VERSION != 31559
|
|
|
+# ifdef HAVE_SG_ACTOR_REF
|
|
|
+ sg_actor_ref(*thread);
|
|
|
+# else
|
|
|
MSG_process_ref(*thread);
|
|
|
+# endif
|
|
|
#endif
|
|
|
return 0;
|
|
|
}
|
|
@@ -104,7 +108,11 @@ int starpu_pthread_join(starpu_pthread_t thread STARPU_ATTRIBUTE_UNUSED, void **
|
|
|
#if SIMGRID_VERSION >= 31400
|
|
|
MSG_process_join(thread, 1000000);
|
|
|
#if SIMGRID_VERSION >= 31500 && SIMGRID_VERSION != 31559
|
|
|
+# ifdef HAVE_SG_ACTOR_REF
|
|
|
+ sg_actor_unref(thread);
|
|
|
+# else
|
|
|
MSG_process_unref(thread);
|
|
|
+# endif
|
|
|
#endif
|
|
|
#else
|
|
|
starpu_sleep(1);
|