%\pagebreak
\subsection{\kcode{omp_init_lock_with_hint} Routine}
\label{subsec:init_lock_with_hint}

\index{routines!omp_init_lock_with_hint@\kcode{omp_init_lock_with_hint}}
\index{omp_init_lock_with_hint routine@\kcode{omp_init_lock_with_hint} routine}
The following example demonstrates how to initialize an array of locks in a \kcode{parallel} region by using \kcode{omp_init_lock_with_hint}.
Note, hints are combined with an \bcode{|} or \bcode{+} operator in C/C++ and a \bcode{+} operator in Fortran.

\cppexample[5.0]{init_lock_with_hint}{1}

\fexample[5.0]{init_lock_with_hint}{1}
