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

Go to the source code of this file.

Functions

static void wait_on_flag (int *flag)
 
static void signal_flag (int *flag)
 
int main (int argc, char **argv)
 

Variables

int a = 0
 
int b = 0
 
int task_grabbed = 0
 
int task_can_proceed = 0
 
int task2_grabbed = 0
 
int task2_can_proceed = 0
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ signal_flag()

static void signal_flag ( int flag)
static

Definition at line 28 of file taskdep_if0_2.c.

Referenced by main().

◆ wait_on_flag()

static void wait_on_flag ( int flag)
static

Definition at line 12 of file taskdep_if0_2.c.

References flag, and my_sleep().

Referenced by main().

Variable Documentation

◆ a

int a = 0

Definition at line 8 of file taskdep_if0_2.c.

Referenced by main().

◆ b

int b = 0

Definition at line 8 of file taskdep_if0_2.c.

Referenced by main().

◆ task2_can_proceed

int task2_can_proceed = 0

Definition at line 10 of file taskdep_if0_2.c.

Referenced by main().

◆ task2_grabbed

int task2_grabbed = 0

Definition at line 10 of file taskdep_if0_2.c.

Referenced by main().

◆ task_can_proceed

int task_can_proceed = 0

Definition at line 9 of file taskdep_if0_2.c.

Referenced by main().

◆ task_grabbed

int task_grabbed = 0

Definition at line 9 of file taskdep_if0_2.c.

Referenced by main().