Re: Re: [GSoC'19, libgomp work-stealing] Task parallelism runtime
김규래
msca8h@naver.com
Sun Jul 21 07:46:00 GMT 2019
Hi Jakub,
About the snippet below,
if (gomp_barrier_last_thread (state))
{
if (team->task_count == 0)
{
gomp_team_barrier_done (&team->barrier, state);
gomp_mutex_unlock (&team->task_lock);
gomp_team_barrier_wake (&team->barrier, 0);
return;
}
gomp_team_barrier_set_waiting_for_tasks (&team->barrier);
}
Am I safe to assume that gomp_barrier_last_thread is thread-safe?
Ray Kim
More information about the Gcc
mailing list