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


2.11 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 v2.5, section 3.3.1.