Next: omp_test_lock, Previous: omp_init_lock, Up: Runtime Library Routines
omp_set_lock
– Wait for and set simple lockomp_init_lock
. The calling thread is blocked until the lock
is available. If the lock is already held by the current thread,
a deadlock occurs.
Prototype: | void omp_set_lock(omp_lock_t *lock);
|
Interface: | subroutine omp_set_lock(lock)
|
integer(omp_lock_kind), intent(inout) :: lock
|