![]() |
![]() |
OpenMP Runtime
|
Implements the OMP locking APIs. More...
Functions | |
void | omp_init_lock (omp_lock_t *lock) |
Allocate the lock variable and initialize it to an unlocked state. | |
void | omp_destroy_lock (omp_lock_t *lock) |
Free storage associated with the lock variable. | |
void | omp_set_lock (omp_lock_t *lock) |
Set the lock. | |
int | omp_test_lock (omp_lock_t *lock) |
Attempt to set the lock. | |
void | omp_unset_lock (omp_lock_t *lock) |
Unset the lock. | |
void | omp_init_nest_lock (omp_nest_lock_t *lock) |
Initialize the nested lock and set nesting count to 0. | |
void | omp_destroy_nest_lock (omp_nest_lock_t *lock) |
Free storage associated with the lock variable. | |
void | omp_set_nest_lock (omp_nest_lock_t *lock) |
Set the nested lock. | |
int | omp_test_nest_lock (omp_nest_lock_t *lock) |
Attempt to set the nested lock. | |
void | omp_unset_nest_lock (omp_nest_lock_t *lock) |
Decrement the nesting count and unset if resulting count is 0. |
Implements the OMP locking APIs.
void omp_destroy_lock | ( | omp_lock_t * | lock | ) |
Free storage associated with the lock variable.
lock | ptr to variable of type omp_lock_t |
void omp_destroy_nest_lock | ( | omp_nest_lock_t * | lock | ) |
Free storage associated with the lock variable.
lock | ptr to variable of type omp_nest_lock_t |
void omp_init_lock | ( | omp_lock_t * | lock | ) |
Allocate the lock variable and initialize it to an unlocked state.
Also, no task owns the lock.
lock | ptr to variable of type omp_lock_t |
void omp_init_nest_lock | ( | omp_nest_lock_t * | lock | ) |
Initialize the nested lock and set nesting count to 0.
lock | ptr to variable of type omp_nest_lock_t |
void omp_set_lock | ( | omp_lock_t * | lock | ) |
Set the lock.
lock | ptr to variable of type omp_lock_t |
void omp_set_nest_lock | ( | omp_nest_lock_t * | lock | ) |
Set the nested lock.
lock | ptr to variable of type omp_nest_lock_t |
int omp_test_lock | ( | omp_lock_t * | lock | ) |
Attempt to set the lock.
lock | ptr to variable of type omp_lock_t |
int omp_test_nest_lock | ( | omp_nest_lock_t * | lock | ) |
Attempt to set the nested lock.
lock | ptr to variable of type omp_nest_lock_t |
void omp_unset_lock | ( | omp_lock_t * | lock | ) |
Unset the lock.
lock | ptr to variable of type omp_lock_t |
void omp_unset_nest_lock | ( | omp_nest_lock_t * | lock | ) |
Decrement the nesting count and unset if resulting count is 0.
lock | ptr to variable of type omp_nest_lock_t |