LLVM OpenMP 22.0.0git
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()

◆ signal_flag()

void signal_flag ( int * flag)
static

Definition at line 28 of file taskdep_if0_2.c.

References flag.

Referenced by main().

◆ wait_on_flag()

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.

◆ b

int b = 0

Definition at line 8 of file taskdep_if0_2.c.

◆ task2_can_proceed

int task2_can_proceed = 0

Definition at line 10 of file taskdep_if0_2.c.

◆ task2_grabbed

int task2_grabbed = 0

Definition at line 10 of file taskdep_if0_2.c.

◆ task_can_proceed

int task_can_proceed = 0

Definition at line 9 of file taskdep_if0_2.c.

◆ task_grabbed

int task_grabbed = 0

Definition at line 9 of file taskdep_if0_2.c.