Partager via


3.2.2 omp_destroy_lock and omp_destroy_nest_lock Functions

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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.