ソースを参照

don't special-case simgrid now that we have proper pthread_self and pthread_equal for it

Samuel Thibault 8 年 前
コミット
c6bd89a3a0
共有1 個のファイルを変更した0 個の追加4 個の削除を含む
  1. 0 4
      src/core/workers.c

+ 0 - 4
src/core/workers.c

@@ -1428,9 +1428,7 @@ static void _starpu_terminate_workers(struct _starpu_machine_config *pconfig)
 		{
 			if (set->started)
 			{
-#ifndef STARPU_SIMGRID
 				if (!starpu_pthread_equal(starpu_pthread_self(), set->worker_thread))
-#endif
 					status = starpu_pthread_join(set->worker_thread, NULL);
 				if (status)
 				{
@@ -1446,9 +1444,7 @@ static void _starpu_terminate_workers(struct _starpu_machine_config *pconfig)
 			if (!worker->run_by_starpu)
 				goto out;
 
-#ifndef STARPU_SIMGRID
 			if (!starpu_pthread_equal(starpu_pthread_self(), worker->worker_thread))
-#endif
 				status = starpu_pthread_join(worker->worker_thread, NULL);
 			if (status)
 			{