use blas lock on LOONGSON3A

This commit is contained in:
fengruilin 2018-09-30 16:55:13 +08:00
parent 6fc85a6359
commit f27916d117
1 changed files with 7 additions and 0 deletions

View File

@ -208,6 +208,13 @@ extern "C" {
#undef USE_PTHREAD_SPINLOCK
#endif
#ifdef OS_LINUX
#ifdef LOONGSON3A
#undef USE_PTHREAD_LOCK
#undef USE_PTHREAD_SPINLOCK
#endif
#endif
#if defined(USE_PTHREAD_LOCK)
#define LOCK_COMMAND(x) pthread_mutex_lock(x)
#define UNLOCK_COMMAND(x) pthread_mutex_unlock(x)