summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>2019-05-15 23:18:43 +0200
committerGitHub <noreply@github.com>2019-05-15 23:18:43 +0200
commitd2cb610272137536416df2e44f1bc8175ddd4eaf (patch)
treed82c64f4c2db9c72673c7f05dcc293a48114aa61 /common.h
parentff1bfe7b1689396004cedabe856e2a856fd72bee (diff)
downloadopenblas-d2cb610272137536416df2e44f1bc8175ddd4eaf.tar.gz
openblas-d2cb610272137536416df2e44f1bc8175ddd4eaf.tar.bz2
openblas-d2cb610272137536416df2e44f1bc8175ddd4eaf.zip
Add option USE_LOCKING for single-threaded build with locking support
for calling from concurrent threads
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.h b/common.h
index 0ac74bb20..a9fe8d911 100644
--- a/common.h
+++ b/common.h
@@ -131,7 +131,7 @@ extern "C" {
#include <time.h>
#include <unistd.h>
#include <math.h>
-#ifdef SMP
+#if defined(SMP) || defined(USE_LOCKING)
#include <pthread.h>
#endif
#endif
@@ -200,7 +200,7 @@ extern "C" {
#error "You can't specify both LOCK operation!"
#endif
-#ifdef SMP
+#if defined(SMP) || defined(USE_LOCKING)
#define USE_PTHREAD_LOCK
#undef USE_PTHREAD_SPINLOCK
#endif