]>
Commit | Line | Data |
---|---|---|
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_destroy_lock: | |
7 | ||
8 | omp_destroy_lock -- Destroy simple lock | |
9 | *************************************** | |
10 | ||
11 | Description: | |
12 | Destroy a simple lock. In order to be destroyed, a simple lock must be | |
13 | in the unlocked state. | |
14 | ||
15 | C/C++: | |
16 | .. list-table:: | |
17 | ||
18 | * - *Prototype*: | |
19 | - ``void omp_destroy_lock(omp_lock_t *lock);`` | |
20 | ||
21 | Fortran: | |
22 | .. list-table:: | |
23 | ||
24 | * - *Interface*: | |
25 | - ``subroutine omp_destroy_lock(svar)`` | |
26 | * - | |
27 | - ``integer(omp_lock_kind), intent(inout) :: svar`` | |
28 | ||
29 | See also: | |
30 | :ref:`omp_init_lock` | |
31 | ||
32 | Reference: | |
33 | :openmp:`4.5`, Section 3.3.3. |