diff options
author | Martin Kroeker <martin@ruby.chemie.uni-freiburg.de> | 2019-05-15 23:18:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-15 23:18:43 +0200 |
commit | d2cb610272137536416df2e44f1bc8175ddd4eaf (patch) | |
tree | d82c64f4c2db9c72673c7f05dcc293a48114aa61 /common.h | |
parent | ff1bfe7b1689396004cedabe856e2a856fd72bee (diff) | |
download | openblas-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |