From 90b51b70e09291728c137c9269926e283511beeb Mon Sep 17 00:00:00 2001 From: fengruilin Date: Fri, 26 Oct 2018 16:51:42 +0800 Subject: [PATCH] loongson can use blas_lock --- common.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common.h b/common.h index 6c3d5b15e..9911226ee 100644 --- a/common.h +++ b/common.h @@ -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)