testsuite/libgomp.c/sections-1.c File Reference

#include <omp.h>
#include <string.h>
#include <assert.h>
#include "libgomp_g.h"

Include dependency graph for sections-1.c:

Go to the source code of this file.

Defines

#define N   100

Functions

static void clean_data (void)
static void test_data (void)
static void set_data (unsigned i, int val)
static void f_1 (void *dummy)
static void test_1 (void)
static void f_2 (void *dummy)
static void test_2 (void)
int main ()

Variables

static int data [N]
static int NTHR


Define Documentation

#define N   100

Definition at line 11 of file sections-1.c.


Function Documentation

static void clean_data ( void   )  [static]

Definition at line 15 of file sections-1.c.

References data, and memset().

Here is the call graph for this function:

static void f_1 ( void *  dummy  )  [static]

Definition at line 37 of file sections-1.c.

References GOMP_sections_end(), GOMP_sections_next(), GOMP_sections_start(), N, omp_get_thread_num(), and set_data().

Referenced by test_1().

Here is the call graph for this function:

Here is the caller graph for this function:

static void f_2 ( void *  dummy  )  [static]

Definition at line 56 of file sections-1.c.

References GOMP_sections_end_nowait(), GOMP_sections_next(), omp_get_thread_num(), and set_data().

Referenced by test_2().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( void   ) 

Definition at line 75 of file sections-1.c.

References NTHR, omp_set_dynamic(), test_1(), and test_2().

Here is the call graph for this function:

static void set_data ( unsigned  i,
int  val 
) [static]

Definition at line 28 of file sections-1.c.

References data, and N.

static void test_1 ( void   )  [static]

Definition at line 47 of file sections-1.c.

References clean_data(), f_1(), GOMP_parallel_end(), GOMP_parallel_start(), NTHR, and test_data().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_2 ( void   )  [static]

Definition at line 66 of file sections-1.c.

References clean_data(), f_2(), GOMP_parallel_end(), GOMP_parallel_sections_start(), N, NTHR, and test_data().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void test_data ( void   )  [static]

Definition at line 20 of file sections-1.c.

References data, i, and N.


Variable Documentation

int data[N] [static]

Definition at line 12 of file sections-1.c.

int NTHR [static]

Definition at line 13 of file sections-1.c.


Generated on Fri Apr 5 05:41:33 2013 for Libgomp by  doxygen 1.4.7