mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
13 lines
368 B
TeX
13 lines
368 B
TeX
\subsection{\kcode{omp_init_lock} Routine}
|
|
\label{subsec:init_lock}
|
|
|
|
\index{routines!omp_init_lock@\kcode{omp_init_lock}}
|
|
\index{omp_init_lock routine@\kcode{omp_init_lock} routine}
|
|
The following example demonstrates how to initialize an array of locks in a \kcode{parallel}
|
|
region by using \kcode{omp_init_lock}.
|
|
|
|
\cppexample{init_lock}{1}
|
|
|
|
\fexample{init_lock}{1}
|
|
|