summaryrefslogtreecommitdiffstats
path: root/storage/innobase/sync/srw_lock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/sync/srw_lock.cc')
-rw-r--r--storage/innobase/sync/srw_lock.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/sync/srw_lock.cc b/storage/innobase/sync/srw_lock.cc
index e41451d8..5afb79f2 100644
--- a/storage/innobase/sync/srw_lock.cc
+++ b/storage/innobase/sync/srw_lock.cc
@@ -143,8 +143,7 @@ static inline void srw_pause(unsigned delay)
HMT_medium();
}
-#ifdef SUX_LOCK_GENERIC
-# ifndef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
+#ifndef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
template<> void pthread_mutex_wrapper<true>::wr_wait()
{
const unsigned delay= srw_pause_delay();
@@ -158,8 +157,9 @@ template<> void pthread_mutex_wrapper<true>::wr_wait()
pthread_mutex_lock(&lock);
}
-# endif
+#endif
+#ifdef SUX_LOCK_GENERIC
template void ssux_lock_impl<false>::init();
template void ssux_lock_impl<true>::init();
template void ssux_lock_impl<false>::destroy();