Go to the documentation of this file.
20 #define PTHREAD_LOCK_T pthread_spinlock_t
21 #define PTHREAD_LOCK_INIT(lock) pthread_spin_init(lock, 0)
22 #define PTHREAD_LOCK_DESTROY(lock) pthread_spin_destroy(lock)
23 #define PTHREAD_LOCK(lock) pthread_spin_lock(lock)
24 #define PTHREAD_UNLOCK(lock) pthread_spin_unlock(lock)
26 #define PTHREAD_LOCK_T pthread_mutex_t
27 #define PTHREAD_LOCK_INIT(lock) pthread_mutex_init(lock, NULL)
28 #define PTHREAD_LOCK_DESTROY(lock) pthread_mutex_destroy(lock)
29 #define PTHREAD_LOCK(lock) pthread_mutex_lock(lock)
30 #define PTHREAD_UNLOCK(lock) pthread_mutex_unlock(lock)
SHOGUN Machine Learning Toolbox - Documentation