共用方式為


3.2.2 omp_destroy_lock and omp_destroy_nest_lock Functions

These functions ensure that the pointed to lock variable lock is uninitialized. The format is as follows:

#include <omp.h>
void omp_destroy_lock(omp_lock_t *lock);
void omp_destroy_nest_lock(omp_nest_lock_t *lock);

It is noncompliant to call either of these routines with a lock variable that is uninitialized or unlocked.