Share via


omp_set_lock

Blocks thread execution until a lock is available.

void omp_set_lock(
   omp_lock_t *lock
);

Remarks

where,

Remarks

For more information, see 3.2.3 omp_set_lock and omp_set_nest_lock Functions.

Examples

See omp_init_lock for an example of using omp_set_lock.

See Also

Concepts

OpenMP Functions