omp_init_lock
- Updated2023-02-21
- 1 minute(s) read
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 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