loongson can use blas_lock

This commit is contained in:
fengruilin 2018-10-26 16:51:42 +08:00
parent 34617742ec
commit 90b51b70e0
1 changed files with 7 additions and 0 deletions

View File

@ -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)