Lock Routines (GNU libgomp) (original) (raw)
Next: Timing Routines, Previous: Device Memory Routines, Up: OpenMP Runtime Library Routines [Contents][Index]
3.8 Lock Routines ¶
Initialize, set, test, unset and destroy simple and nested locks. The routines have C linkage and do not throw exceptions.
- omp_init_lock – Initialize simple lock
- omp_init_nest_lock – Initialize nested lock
- omp_destroy_lock – Destroy simple lock
- omp_destroy_nest_lock – Destroy nested lock
- omp_set_lock – Wait for and set simple lock
- omp_set_nest_lock – Wait for and set nested lock
- omp_unset_lock – Unset simple lock
- omp_unset_nest_lock – Unset nested lock
- omp_test_lock – Test and set simple lock if available
- omp_test_nest_lock – Test and set nested lock if available