summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/mutex.h
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-08-28 16:02:38 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-08-28 16:02:38 +1000
commita7338c436160e259d0b20058f0a9ae4b442ca102 (patch)
treebfc887ab328328c72face3d1afc99530a89584ff /src/third_party/wiredtiger/src/include/mutex.h
parentf51b43f0fbabe121c18387d8bfbb187a2c6efdee (diff)
downloadmongo-a7338c436160e259d0b20058f0a9ae4b442ca102.tar.gz
Import wiredtiger-wiredtiger-2.6.1-633-g0cccab3.tar.gz from wiredtiger branch mongodb-3.2
Diffstat (limited to 'src/third_party/wiredtiger/src/include/mutex.h')
-rw-r--r--src/third_party/wiredtiger/src/include/mutex.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/src/include/mutex.h b/src/third_party/wiredtiger/src/include/mutex.h
index 7d901a38d0d..1f1bb8f4b5c 100644
--- a/src/third_party/wiredtiger/src/include/mutex.h
+++ b/src/third_party/wiredtiger/src/include/mutex.h
@@ -65,20 +65,21 @@ struct __wt_rwlock {
#if SPINLOCK_TYPE == SPINLOCK_GCC
-typedef volatile int WT_COMPILER_TYPE_ALIGN(WT_CACHE_LINE_ALIGNMENT)
- WT_SPINLOCK;
+struct WT_COMPILER_TYPE_ALIGN(WT_CACHE_LINE_ALIGNMENT) __wt_spinlock {
+ volatile int lock;
+};
#elif SPINLOCK_TYPE == SPINLOCK_PTHREAD_MUTEX ||\
SPINLOCK_TYPE == SPINLOCK_PTHREAD_MUTEX_ADAPTIVE ||\
SPINLOCK_TYPE == SPINLOCK_MSVC
-typedef WT_COMPILER_TYPE_ALIGN(WT_CACHE_LINE_ALIGNMENT) struct {
+struct WT_COMPILER_TYPE_ALIGN(WT_CACHE_LINE_ALIGNMENT) __wt_spinlock {
wt_mutex_t lock;
const char *name; /* Statistics: mutex name */
int8_t initialized; /* Lock initialized, for cleanup */
-} WT_SPINLOCK;
+};
#else