Prechádzať zdrojové kódy

Only disable checking on the terminated field. enable/disable is unfortunately global, not per thread.

Samuel Thibault 10 rokov pred
rodič
commit
ffa7e695ab
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/core/jobs.c

+ 2 - 2
src/core/jobs.c

@@ -162,10 +162,10 @@ int _starpu_test_job_termination(struct _starpu_job *j)
 	STARPU_ASSERT(j->task);
 	STARPU_ASSERT(!j->task->detach);
 	/* Disable Helgrind race complaint, since we really just want to poll j->terminated */
-	STARPU_HG_DISABLE_CHECKING(*j);
+	STARPU_HG_DISABLE_CHECKING(j->terminated);
 	STARPU_SYNCHRONIZE();
 	int ret = (j->terminated == 2);
-	STARPU_HG_ENABLE_CHECKING(*j);
+	STARPU_HG_ENABLE_CHECKING(j->terminated);
 	return ret;
 }
 void _starpu_job_prepare_for_continuation_ext(struct _starpu_job *j, unsigned continuation_resubmit,