omp_unset_lock – Unset simple lock
- A simple lock about to be unset must have been locked by
omp_test_lock before. In addition, the lock must be held by the
omp_unset_lock. Then, the lock becomes unlocked. If one
ore more threads attempted to set the lock before, one of them is chosen to,
again, set the lock for itself.
void omp_unset_lock(omp_lock_t *lock);
integer(omp_lock_kind), intent(out) :: lock
- See also:
- omp_set_lock, omp_test_lock
- OpenMP specifications v3.0, section 3.3.4.