Go to the documentation of this file. 27 #ifndef _TPI_OPENMP_H_ 28 #define _TPI_OPENMP_H_ 33 #define SCIPtpiInitLock(lock) (omp_init_lock(lock), SCIP_OKAY) 34 #define SCIPtpiDestroyLock(lock) (omp_destroy_lock(lock)) 35 #define SCIPtpiAcquireLock(lock) (omp_set_lock(lock), SCIP_OKAY) 36 #define SCIPtpiReleaseLock(lock) (omp_unset_lock(lock), SCIP_OKAY) 39 #define SCIPtpiInitCondition(condition) ( omp_init_lock(&(condition)->_lock), \ 40 (condition)->_waiters = 0, (condition)->_waitnum = 0, (condition)->_signals = 0, SCIP_OKAY ) 41 #define SCIPtpiDestroyCondition(condition) do { assert((condition)->_waiters == 0); assert((condition)->_waitnum == 0); assert((condition)->_signals == 0); omp_destroy_lock(&(condition)->_lock); } while(0)