LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

omp_init_lock

omp_init_lock

void omp_init_lock (omp_lock_t *lock);

Purpose

Initializes a simple, uninitialized OpenMP lock to the unlocked state. In the unlocked state, no thread owns the lock.

Note Note  The OpenMP Run-Time Library is available only in the LabWindows/CVI Full Development System.

Lock variables you pass to this function must be in the unintialized state. An uninitialized lock variable is one that has never been passed to this function or which has been destroyed by calling the omp_destroy_lock function.

Binding thread set: all threads

Parameters

Output
Name Type Description
lock omp_lock_t A pointer to a variable of type omp_lock_t. After this function returns, this variable represents an initialized lock in the unlocked state.

Return Value

None.

Additional Information

Library: OpenMP Run-Time Library

Include file: omp.h

LabWindows/CVI compatibility: LabWindows/CVI 2013 and later

Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit