omp_init_lock

void omp_init_lock(omp_lock_t *lock)
These functions (this and omp_init_nest_lock) provide the only means of initializing a lock. Each function initializes the lock associated with the parameter lock for use in subsequent calls.


OpenMP API Index