loongson can use blas_lock
This commit is contained in:
parent
34617742ec
commit
90b51b70e0
7
common.h
7
common.h
|
@ -208,6 +208,13 @@ extern "C" {
|
||||||
#undef USE_PTHREAD_SPINLOCK
|
#undef USE_PTHREAD_SPINLOCK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef OS_LINUX
|
||||||
|
#ifdef LOONGSON3A
|
||||||
|
#undef USE_PTHREAD_LOCK
|
||||||
|
#undef USE_PTHREAD_SPINLOCK
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(USE_PTHREAD_LOCK)
|
#if defined(USE_PTHREAD_LOCK)
|
||||||
#define LOCK_COMMAND(x) pthread_mutex_lock(x)
|
#define LOCK_COMMAND(x) pthread_mutex_lock(x)
|
||||||
#define UNLOCK_COMMAND(x) pthread_mutex_unlock(x)
|
#define UNLOCK_COMMAND(x) pthread_mutex_unlock(x)
|
||||||
|
|
Loading…
Reference in New Issue