Next: , Previous: omp_set_schedule, Up: Runtime Library Routines


2.21 omp_init_lock – Initialize simple lock

Description:
Initialize a simple lock. After initialization, the lock is in an unlocked state.
C/C++:

Prototype: void omp_init_lock(omp_lock_t *lock);

Fortran:

Interface: subroutine omp_init_lock(lock)
integer(omp_lock_kind), intent(out) :: lock

See also:
omp_destroy_lock
Reference:
OpenMP specifications v3.1, section 3.3.1.