LLVM OpenMP 22.0.0git
omp50_taskwait_depend.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 36 of file omp50_taskwait_depend.c.

References flag.

Referenced by main().

◆ wait_on_flag()

void wait_on_flag ( int * flag)
static

Definition at line 20 of file omp50_taskwait_depend.c.

References flag, and my_sleep().

Referenced by main().

Variable Documentation

◆ a

int a = 0

Definition at line 16 of file omp50_taskwait_depend.c.

◆ b

int b = 0

Definition at line 16 of file omp50_taskwait_depend.c.

◆ task2_can_proceed

int task2_can_proceed = 0

Definition at line 18 of file omp50_taskwait_depend.c.

Referenced by main().

◆ task2_grabbed

int task2_grabbed = 0

Definition at line 18 of file omp50_taskwait_depend.c.

Referenced by main().

◆ task_can_proceed

int task_can_proceed = 0

Definition at line 17 of file omp50_taskwait_depend.c.

Referenced by main().

◆ task_grabbed

int task_grabbed = 0

Definition at line 17 of file omp50_taskwait_depend.c.

Referenced by main().