LLVM OpenMP 20.0.0git
Macros | Functions | Variables
omp50_task_depend_mtx3.c File Reference
#include <stdio.h>
#include <omp.h>
#include "omp_my_sleep.h"

Go to the source code of this file.

Macros

#define DELAY   0.1
 

Functions

int mutex_task (int task_id)
 
int main ()
 

Variables

static int checker = 0
 
static int err = 0
 

Macro Definition Documentation

◆ DELAY

#define DELAY   0.1

Definition at line 28 of file omp50_task_depend_mtx3.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 50 of file omp50_task_depend_mtx3.c.

References DELAY, err, mutex_task(), my_sleep(), and omp_set_num_threads.

◆ mutex_task()

int mutex_task ( int  task_id)

Definition at line 31 of file omp50_task_depend_mtx3.c.

References checker, DELAY, err, and my_sleep().

Referenced by main().

Variable Documentation

◆ checker

int checker = 0
static

Definition at line 25 of file omp50_task_depend_mtx3.c.

Referenced by mutex_task().

◆ err

int err = 0
static

Definition at line 26 of file omp50_task_depend_mtx3.c.

Referenced by main(), and mutex_task().