config/posix/bar.h File Reference

#include <pthread.h>

Include dependency graph for bar.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gomp_barrier_t

Defines

#define GOMP_BARRIER_H   1

Typedefs

typedef unsigned int gomp_barrier_state_t

Functions

void gomp_barrier_init (gomp_barrier_t *, unsigned)
void gomp_barrier_reinit (gomp_barrier_t *, unsigned)
void gomp_barrier_destroy (gomp_barrier_t *)
void gomp_barrier_wait (gomp_barrier_t *)
void gomp_barrier_wait_end (gomp_barrier_t *, gomp_barrier_state_t)
void gomp_team_barrier_wait (gomp_barrier_t *)
void gomp_team_barrier_wait_end (gomp_barrier_t *, gomp_barrier_state_t)
void gomp_team_barrier_wake (gomp_barrier_t *, int)
static gomp_barrier_state_t gomp_barrier_wait_start (gomp_barrier_t *bar)
static bool gomp_barrier_last_thread (gomp_barrier_state_t state)
static void gomp_barrier_wait_last (gomp_barrier_t *bar)
static void gomp_team_barrier_set_task_pending (gomp_barrier_t *bar)
static void gomp_team_barrier_clear_task_pending (gomp_barrier_t *bar)
static void gomp_team_barrier_set_waiting_for_tasks (gomp_barrier_t *bar)
static bool gomp_team_barrier_waiting_for_tasks (gomp_barrier_t *bar)
static void gomp_team_barrier_done (gomp_barrier_t *bar, gomp_barrier_state_t state)


Define Documentation

#define GOMP_BARRIER_H   1

Definition at line 31 of file bar.h.


Typedef Documentation

typedef unsigned int gomp_barrier_state_t

Definition at line 47 of file bar.h.


Function Documentation

void gomp_barrier_destroy ( gomp_barrier_t  ) 

Definition at line 48 of file bar.c.

References bar, gomp_mutex_destroy(), gomp_mutex_lock(), gomp_mutex_unlock(), and gomp_sem_destroy().

Here is the call graph for this function:

void gomp_barrier_init ( gomp_barrier_t ,
unsigned   
)

Definition at line 34 of file bar.c.

References bar, gomp_mutex_init(), and gomp_sem_init().

Here is the call graph for this function:

static bool gomp_barrier_last_thread ( gomp_barrier_state_t  state  )  [inline, static]

Definition at line 71 of file bar.h.

void gomp_barrier_reinit ( gomp_barrier_t ,
unsigned   
)

Definition at line 63 of file bar.c.

References bar, gomp_mutex_lock(), and gomp_mutex_unlock().

Here is the call graph for this function:

void gomp_barrier_wait ( gomp_barrier_t  ) 

Definition at line 55 of file bar.c.

References bar, gomp_team::barrier, gomp_barrier_wait_end(), and gomp_barrier_wait_start().

Here is the call graph for this function:

void gomp_barrier_wait_end ( gomp_barrier_t ,
gomp_barrier_state_t   
)

Definition at line 34 of file bar.c.

References atomic_write_barrier(), bar, do_wait(), futex_wake(), gomp_mutex_lock(), gomp_mutex_unlock(), gomp_sem_post(), gomp_sem_wait(), INT_MAX, and n.

Here is the call graph for this function:

static void gomp_barrier_wait_last ( gomp_barrier_t bar  )  [inline, static]

Definition at line 77 of file bar.h.

References bar, and gomp_barrier_wait().

Here is the call graph for this function:

static gomp_barrier_state_t gomp_barrier_wait_start ( gomp_barrier_t bar  )  [inline, static]

Definition at line 61 of file bar.h.

References bar, and gomp_mutex_lock().

Here is the call graph for this function:

static void gomp_team_barrier_clear_task_pending ( gomp_barrier_t bar  )  [inline, static]

Definition at line 92 of file bar.h.

References bar.

static void gomp_team_barrier_done ( gomp_barrier_t bar,
gomp_barrier_state_t  state 
) [inline, static]

Definition at line 110 of file bar.h.

References bar.

static void gomp_team_barrier_set_task_pending ( gomp_barrier_t bar  )  [inline, static]

Definition at line 86 of file bar.h.

References bar.

static void gomp_team_barrier_set_waiting_for_tasks ( gomp_barrier_t bar  )  [inline, static]

Definition at line 98 of file bar.h.

References bar.

void gomp_team_barrier_wait ( gomp_barrier_t  ) 

Definition at line 119 of file bar.c.

References bar, gomp_team::barrier, gomp_barrier_wait_start(), and gomp_team_barrier_wait_end().

Here is the call graph for this function:

void gomp_team_barrier_wait_end ( gomp_barrier_t ,
gomp_barrier_state_t   
)

Definition at line 82 of file bar.c.

References atomic_write_barrier(), bar, do_wait(), futex_wake(), gomp_barrier_handle_tasks(), gomp_mutex_lock(), gomp_mutex_unlock(), gomp_sem_post(), gomp_sem_wait(), gomp_thread(), INT_MAX, n, gomp_team::task_count, and thr.

Here is the call graph for this function:

static bool gomp_team_barrier_waiting_for_tasks ( gomp_barrier_t bar  )  [inline, static]

Definition at line 104 of file bar.h.

References bar.

void gomp_team_barrier_wake ( gomp_barrier_t ,
int   
)

Definition at line 76 of file bar.c.

References bar, futex_wake(), gomp_sem_post(), and INT_MAX.

Here is the call graph for this function:


Generated on Fri Apr 5 05:38:30 2013 for Libgomp by  doxygen 1.4.7