]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/doc/openmp-runtime-library-routines/ompinitnestlock.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / openmp-runtime-library-routines / ompinitnestlock.rst
CommitLineData
c63539ff
ML
1..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6.. _omp_init_nest_lock:
7
8omp_init_nest_lock -- Initialize nested lock
9********************************************
10
11Description:
12 Initialize a nested lock. After initialization, the lock is in
13 an unlocked state and the nesting count is set to zero.
14
15C/C++:
16 .. list-table::
17
18 * - *Prototype*:
19 - ``void omp_init_nest_lock(omp_nest_lock_t *lock);``
20
21Fortran:
22 .. list-table::
23
24 * - *Interface*:
25 - ``subroutine omp_init_nest_lock(nvar)``
26 * -
27 - ``integer(omp_nest_lock_kind), intent(out) :: nvar``
28
29See also:
30 :ref:`omp_destroy_nest_lock`
31
32Reference:
3ed1b4ce 33 :openmp:`4.5`, Section 3.3.1.