wrf.omp_test_nest_lock

wrf.omp_test_nest_lock(nvar)

Test a nestable OpenMP lock.

This method attempts to set the lock, but does not suspend execution.

Parameters:

nvar (int) – An integer representing the simple lock.

Returns:

Returns the nesting count if successful, otherwise 0 (False).

Return type:

int

See also

wrf.test_lock(), wrf.omp_set_nest_lock()