omp_test_nest_lock
int omp_test_nest_lock (omp_nest_lock_t *lock);
Purpose
Attempts to set a nestable OpenMP lock without blocking the execution of the calling thread.
![]() |
Note The OpenMP Run-Time Library is available only in the LabWindows/CVI Full Development System. |
The function returns TRUE if the lock is successfully set and ownership of the lock is granted to the calling thread. Otherwise it returns FALSE.
Locks you pass to this function must be not be in the unintialized state.
Binding thread set: all threads
Parameters
Input | ||
Name | Type | Description |
lock | omp_nest_lock_t * | A pointer to a variable of type omp_nest_lock_t. If the function returns TRUE, the lock variable is then in the locked state. Otherwise the state of the lock remains unchanged. |
Return Value
Name | Type | Description |
returnValue | int | Returns TRUE if the lock is successfully set. Otherwise it returns FALSE. |
Additional Information
Library: OpenMP Run-Time Library
Include file: omp.h
LabWindows/CVI compatibility: LabWindows/CVI 2013 and later