Browse Source

Fix simgrid crash

Samuel Thibault 12 years ago
parent
commit
4311ab3b1f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/workers.c

+ 1 - 1
src/core/workers.c

@@ -863,7 +863,7 @@ static void _starpu_terminate_workers(struct _starpu_machine_config *pconfig)
 				goto out;
 
 #ifdef STARPU_SIMGRID
-			status = starpu_pthread_join(set->worker_thread, NULL);
+			status = starpu_pthread_join(worker->worker_thread, NULL);
 #else
 			if (!pthread_equal(pthread_self(), worker->worker_thread))
 				status = starpu_pthread_join(worker->worker_thread, NULL);