Next: omp_test_nest_lock
– Test and set nested lock if available, Previous: omp_init_nest_lock
– Initialize nested lock, Up: OpenMP Runtime Library Routines [Contents][Index]
omp_set_nest_lock
– Wait for and set nested lockBefore setting a nested lock, the lock variable must be initialized by
omp_init_nest_lock
. The calling thread is blocked until the lock
is available. If the lock is already held by the current thread, the
nesting count for the lock is incremented.
Prototype: | void omp_set_nest_lock(omp_nest_lock_t *lock); |
Interface: | subroutine omp_set_nest_lock(nvar) |
integer(omp_nest_lock_kind), intent(inout) :: nvar |
omp_init_nest_lock
– Initialize nested lock, omp_unset_nest_lock
– Unset nested lock
OpenMP specification v4.5, Section 3.3.4.