Browse Source

use blas lock on LOONGSON3A

pull/1781/head
fengruilin 7 years ago
parent
commit
f27916d117
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      common.h

+ 7
- 0
common.h 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)


Loading…
Cancel
Save