mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-23 14:21:23 +01:00
13 lines
591 B
TeX
13 lines
591 B
TeX
%\pagebreak
|
|
\subsection{\code{omp\_init\_lock\_with\_hint} Routine}
|
|
\label{subsec:init_lock_with_hint}
|
|
|
|
\index{routines!omp_init_lock_with_hint@\scode{omp_init_lock_with_hint}}
|
|
\index{omp_init_lock_with_hint routine@\scode{omp_init_lock_with_hint} routine}
|
|
The following example demonstrates how to initialize an array of locks in a \code{parallel} region by using \code{omp\_init\_lock\_with\_hint}.
|
|
Note, hints are combined with an \code{|} or \code{+} operator in C/C++ and a \code{+} operator in Fortran.
|
|
|
|
\cppexample[5.0]{init_lock_with_hint}{1}
|
|
|
|
\fexample[5.0]{init_lock_with_hint}{1}
|