libgomp: omp_test_lock

1 
1 2.32 'omp_test_lock' - Test and set simple lock if available
1 ============================================================
1 
1 _Description_:
1      Before setting a simple lock, the lock variable must be initialized
1      by 'omp_init_lock'.  Contrary to 'omp_set_lock', 'omp_test_lock'
1      does not block if the lock is not available.  This function returns
1      'true' upon success, 'false' otherwise.  Here, 'true' and 'false'
1      represent their language-specific counterparts.
1 
1 _C/C++_:
1      _Prototype_:   'int omp_test_lock(omp_lock_t *lock);'
1 
1 _Fortran_:
1      _Interface_:   'logical function omp_test_lock(svar)'
1                     'integer(omp_lock_kind), intent(inout) :: svar'
1 
1 _See also_:
1      ⇒omp_init_lock, ⇒omp_set_lock, ⇒omp_set_lock
1 
1 _Reference_:
1      OpenMP specification v4.5 (http://www.openmp.org/), Section 3.3.6.
1