FreeBSD/contrib/gcclibs/libgomp/team.c
/* Terminate the current team.  This is only to be called by the master
   thread.  We assume that we must wait for the other threads.  */
Terminate the current team.  This is only to be called by the master
thread.  We assume that we must wait for the other threads.
Terminate the current team . This is only to be called by the master thread . We assume that we must wait for the other threads .
void
gomp_team_end (void)
{
  struct gomp_thread *thr = gomp_thread ();
  struct gomp_team *team = thr->ts.team;
  gomp_barrier_wait (&team->barrier);
  thr->ts = team->prev_ts;
  free_team (team);
}
void gomp_team_end ( void ) { struct gomp_thread * thr = gomp_thread ( ) ; struct gomp_team * team = thr -> ts . team ; gomp_barrier_wait ( & team -> barrier ) ; thr -> ts = team -> prev_ts ; free_team ( team ) ; }
Terminate the current team.
Terminate the current team .