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

Reply via email to