Go to the documentation of this file. 36 #ifndef _TPI_OPENMP_H_ 37 #define _TPI_OPENMP_H_ 42 #define SCIPtpiInitLock(lock) (omp_init_lock(lock), SCIP_OKAY) 43 #define SCIPtpiDestroyLock(lock) (omp_destroy_lock(lock)) 44 #define SCIPtpiAcquireLock(lock) (omp_set_lock(lock), SCIP_OKAY) 45 #define SCIPtpiReleaseLock(lock) (omp_unset_lock(lock), SCIP_OKAY) 48 #define SCIPtpiInitCondition(condition) ( omp_init_lock(&(condition)->_lock), \ 49 (condition)->_waiters = 0, (condition)->_waitnum = 0, (condition)->_signals = 0, SCIP_OKAY ) 50 #define SCIPtpiDestroyCondition(condition) do { assert((condition)->_waiters == 0); assert((condition)->_waitnum == 0); assert((condition)->_signals == 0); omp_destroy_lock(&(condition)->_lock); } while(0)