Go to the documentation of this file. 27 #ifndef _TPI_TINYCTHRD_H_ 28 #define _TPI_TINYCTHRD_H_ 31 #define SCIPtpiInitLock(lock) ( mtx_init((lock), mtx_plain) == thrd_success ? SCIP_OKAY : SCIP_ERROR ) 32 #define SCIPtpiDestroyLock(lock) ( mtx_destroy(lock) ) 33 #define SCIPtpiAcquireLock(lock) ( mtx_lock(lock) == thrd_success ? SCIP_OKAY : SCIP_ERROR ) 34 #define SCIPtpiReleaseLock(lock) ( mtx_unlock(lock) == thrd_success ? SCIP_OKAY : SCIP_ERROR ) 37 #define SCIPtpiInitCondition(condition) ( cnd_init(condition) == thrd_success ? SCIP_OKAY : SCIP_ERROR ) 38 #define SCIPtpiDestroyCondition(condition) ( cnd_destroy(condition) ) 39 #define SCIPtpiSignalCondition(condition) ( cnd_signal(condition) == thrd_success ? SCIP_OKAY : SCIP_ERROR ) 40 #define SCIPtpiBroadcastCondition(condition) ( cnd_broadcast(condition) == thrd_success ? SCIP_OKAY : SCIP_ERROR ) 41 #define SCIPtpiWaitCondition(condition, lock) ( cnd_wait((condition), (lock)) == thrd_success ? SCIP_OKAY: SCIP_ERROR ) 44 extern _Thread_local
int _threadnumber;
46 #define SCIPtpiGetThreadNum() _threadnumber