LLVM OpenMP 20.0.0git
Functions | Variables
omp_for_nowait.c File Reference
#include <stdio.h>
#include "omp_testsuite.h"

Go to the source code of this file.

Functions

void wait_for_release_then_increment (int rank)
 
void release_and_increment (int rank)
 
int test_omp_for_nowait ()
 
int main ()
 

Variables

volatile int release
 
volatile int count
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 66 of file omp_for_nowait.c.

References i, REPETITIONS, and test_omp_for_nowait().

◆ release_and_increment()

void release_and_increment ( int  rank)

Definition at line 26 of file omp_for_nowait.c.

References count, rank, and release.

Referenced by test_omp_for_nowait().

◆ test_omp_for_nowait()

int test_omp_for_nowait ( )

Definition at line 34 of file omp_for_nowait.c.

References count, i, rank, release, release_and_increment(), and wait_for_release_then_increment().

Referenced by main().

◆ wait_for_release_then_increment()

void wait_for_release_then_increment ( int  rank)

Definition at line 17 of file omp_for_nowait.c.

References count, rank, and release.

Referenced by test_omp_for_nowait().

Variable Documentation

◆ count

volatile int count

◆ release

volatile int release