LLVM OpenMP 20.0.0git
Classes | Macros | Typedefs | Functions | Variables
omp50_task_depend_mtx2.c File Reference
#include <stdio.h>
#include <omp.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  DEP
 
struct  ID
 

Macros

#define mysleep(n)   usleep((n)*1000)
 
#define DELAY   100
 

Typedefs

typedef int(* entry_t) (int, int **)
 
typedef struct DEP dep
 
typedef struct ID id
 

Functions

int thunk (int gtid, int **pshareds)
 
int __kmpc_global_thread_num (id *)
 
int ** __kmpc_omp_task_alloc (id *loc, int gtid, int flags, size_t sz, size_t shar, entry_t rtn)
 
int __kmpc_omp_task_with_deps (id *loc, int gtid, int **task, int nd, dep *dep_lst, int nd_noalias, dep *noalias_dep_lst)
 
int main ()
 

Variables

static int checker = 0
 
static int err = 0
 
static id loc = {0, 2, 0, 0, ";file;func;0;0;;"}
 

Macro Definition Documentation

◆ DELAY

#define DELAY   100

Definition at line 31 of file omp50_task_depend_mtx2.c.

◆ mysleep

#define mysleep (   n)    usleep((n)*1000)

Definition at line 25 of file omp50_task_depend_mtx2.c.

Typedef Documentation

◆ dep

typedef struct DEP dep

◆ entry_t

typedef int(* entry_t) (int, int **)

Definition at line 36 of file omp50_task_depend_mtx2.c.

◆ id

typedef struct ID id

Function Documentation

◆ __kmpc_global_thread_num()

int __kmpc_global_thread_num ( id )

Referenced by main().

◆ __kmpc_omp_task_alloc()

int ** __kmpc_omp_task_alloc ( id loc,
int  gtid,
int  flags,
size_t  sz,
size_t  shar,
entry_t  rtn 
)

Referenced by main().

◆ __kmpc_omp_task_with_deps()

int __kmpc_omp_task_with_deps ( id loc,
int  gtid,
int **  task,
int  nd,
dep dep_lst,
int  nd_noalias,
dep noalias_dep_lst 
)

Referenced by main().

◆ main()

int main ( void  )

◆ thunk()

int thunk ( int  gtid,
int **  pshareds 
)

Definition at line 50 of file omp50_task_depend_mtx2.c.

References checker, DELAY, err, and mysleep.

Referenced by main().

Variable Documentation

◆ checker

int checker = 0
static

Definition at line 28 of file omp50_task_depend_mtx2.c.

Referenced by thunk().

◆ err

int err = 0
static

Definition at line 29 of file omp50_task_depend_mtx2.c.

Referenced by main(), and thunk().

◆ loc

id loc = {0, 2, 0, 0, ";file;func;0;0;;"}
static

Definition at line 79 of file omp50_task_depend_mtx2.c.

Referenced by main().