sections.c File Reference

#include "libgomp.h"

Include dependency graph for sections.c:

Go to the source code of this file.

Functions

static void gomp_sections_init (struct gomp_work_share *ws, unsigned count)
unsigned GOMP_sections_start (unsigned count)
unsigned GOMP_sections_next (void)
void GOMP_parallel_sections_start (void(*fn)(void *), void *data, unsigned num_threads, unsigned count)
void GOMP_sections_end (void)
void GOMP_sections_end_nowait (void)


Function Documentation

void GOMP_parallel_sections_start ( void(*)(void *)  fn,
void *  data,
unsigned  num_threads,
unsigned  count 
)

Definition at line 134 of file sections.c.

References gomp_new_team(), gomp_resolve_num_threads(), gomp_sections_init(), gomp_team_start(), and gomp_team::work_shares.

Referenced by test_2().

Here is the call graph for this function:

Here is the caller graph for this function:

void GOMP_sections_end ( void   ) 

Definition at line 150 of file sections.c.

References gomp_work_share_end().

Referenced by f_1().

Here is the call graph for this function:

Here is the caller graph for this function:

void GOMP_sections_end_nowait ( void   ) 

Definition at line 156 of file sections.c.

References gomp_work_share_end_nowait().

Referenced by f_2().

Here is the call graph for this function:

Here is the caller graph for this function:

static void gomp_sections_init ( struct gomp_work_share ws,
unsigned  count 
) [inline, static]

Definition at line 33 of file sections.c.

References gomp_work_share::chunk_size, gomp_work_share::end, GFS_DYNAMIC, gomp_thread(), gomp_work_share::incr, gomp_work_share::mode, gomp_work_share::next, gomp_team::nthreads, nthreads, gomp_work_share::sched, and thr.

Referenced by GOMP_parallel_sections_start(), and GOMP_sections_start().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned GOMP_sections_next ( void   ) 

Definition at line 107 of file sections.c.

References e, gomp_iter_dynamic_next_locked(), gomp_mutex_lock(), gomp_mutex_unlock(), gomp_thread(), and thr.

Referenced by f_1(), and f_2().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned GOMP_sections_start ( unsigned  count  ) 

Definition at line 69 of file sections.c.

References e, gomp_iter_dynamic_next_locked(), gomp_mutex_lock(), gomp_mutex_unlock(), gomp_sections_init(), gomp_thread(), gomp_work_share_init_done(), gomp_work_share_start(), and thr.

Referenced by f_1().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Fri Apr 5 05:40:03 2013 for Libgomp by  doxygen 1.4.7