omp_unset_lock
– Unset simple lockomp_set_lock
or omp_test_lock
before. In addition, the lock must be held by the
thread calling omp_unset_lock
. Then, the lock becomes unlocked. If one
or more threads attempted to set the lock before, one of them is chosen to,
again, set the lock to itself.
Prototype: | void omp_unset_lock(omp_lock_t *lock);
|
Interface: | subroutine omp_unset_lock(svar)
|
integer(omp_lock_kind), intent(inout) :: svar
|