diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-10-15 13:00:40 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-10-15 13:00:40 -0400 |
commit | e7c844b1fc761a7da2c80d16c2408d0f3e6d5668 (patch) | |
tree | 0165fc38042ecd334675517a27873c2033a7cb24 /build_posix/aclocal | |
parent | 10c93b0abcc1b320f11fb0721c2946d8a29f76ac (diff) | |
download | mongo-e7c844b1fc761a7da2c80d16c2408d0f3e6d5668.tar.gz |
Add a new spinlock type, "pthread_logging" which configures the code
that adds statistics logging for the blocking patterns of the spinlock
mutexes.
Fix an inconsistency, the docs and configure output said the pthread
mutex option was 'pthread_mutex', it's actually 'pthread'.
Diffstat (limited to 'build_posix/aclocal')
-rw-r--r-- | build_posix/aclocal/options.m4 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build_posix/aclocal/options.m4 b/build_posix/aclocal/options.m4 index 76776c50eb3..00bc1daf8f0 100644 --- a/build_posix/aclocal/options.m4 +++ b/build_posix/aclocal/options.m4 @@ -109,13 +109,16 @@ AC_MSG_CHECKING(if --with-spinlock option specified) AH_TEMPLATE(SPINLOCK_TYPE, [Spinlock type from mutex.h.]) AC_ARG_WITH(spinlock, [AS_HELP_STRING([--with-spinlock], - [Spinlock type (pthread_mutex or gcc).])], + [Spinlock type (pthread, pthread_logging or gcc).])], [], [with_spinlock=pthread]) case "$with_spinlock" in -pthread) AC_DEFINE(SPINLOCK_TYPE, SPINLOCK_PTHREAD_MUTEX);; -gcc) AC_DEFINE(SPINLOCK_TYPE, SPINLOCK_GCC);; -*) AC_MSG_ERROR([Unknown spinlock type "$with_spinlock"]);; +gcc) AC_DEFINE(SPINLOCK_TYPE, SPINLOCK_GCC);; +pthread|pthreads) + AC_DEFINE(SPINLOCK_TYPE, SPINLOCK_PTHREAD_MUTEX);; +pthread_logging|pthreads_logging) + AC_DEFINE(SPINLOCK_TYPE, SPINLOCK_PTHREAD_MUTEX_LOGGING);; +*) AC_MSG_ERROR([Unknown spinlock type "$with_spinlock"]);; esac AC_MSG_RESULT($with_spinlock) |