LLVM OpenMP 22.0.0git
omp50_task_depend_mtx.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)
#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_mtx.c.

◆ mysleep

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

Definition at line 25 of file omp50_task_depend_mtx.c.

Referenced by main(), and thunk().

Typedef Documentation

◆ dep

typedef struct DEP dep

◆ entry_t

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

Definition at line 36 of file omp50_task_depend_mtx.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 )
extern

References loc.

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 )

References loc.

Referenced by main().

◆ main()

◆ thunk()

int thunk ( int gtid,
int ** pshareds )

Definition at line 50 of file omp50_task_depend_mtx.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_mtx.c.

◆ err

int err = 0
static

Definition at line 29 of file omp50_task_depend_mtx.c.

◆ loc

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

Definition at line 79 of file omp50_task_depend_mtx.c.