omp_test_lock – Test and set simple lock if availableomp_init_lock. Contrary to omp_set_lock, omp_test_lock
does not block if the lock is not available. This function returns
true upon success, false otherwise. Here, true and
false represent their language-specific counterparts.
| Prototype: | int omp_test_lock(omp_lock_t *lock);
|
| Interface: | logical function omp_test_lock(lock)
|
integer(omp_lock_kind), intent(inout) :: lock
|