summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/locker.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-12-08 15:15:01 -0500
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-12-08 15:15:01 -0500
commite713fab06dba2dd34b66ecdcf891a04377b74f1f (patch)
tree2360c44b8693bd9f83d1f3195c82f50fade7a59e /src/mongo/db/concurrency/locker.h
parentaad88dd01b39f1c689280289e8fe00f87dcb1db3 (diff)
downloadmongo-e713fab06dba2dd34b66ecdcf891a04377b74f1f.tar.gz
SERVER-27191 hang analyzer should dump lock manager state
Diffstat (limited to 'src/mongo/db/concurrency/locker.h')
-rw-r--r--src/mongo/db/concurrency/locker.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/concurrency/locker.h b/src/mongo/db/concurrency/locker.h
index ca8501393dd..e00882a498d 100644
--- a/src/mongo/db/concurrency/locker.h
+++ b/src/mongo/db/concurrency/locker.h
@@ -33,6 +33,7 @@
#include "mongo/db/concurrency/lock_manager.h"
#include "mongo/db/concurrency/lock_stats.h"
+#include "mongo/stdx/thread.h"
namespace mongo {
@@ -83,6 +84,12 @@ public:
virtual LockerId getId() const = 0;
/**
+ * Get a platform-specific thread identifier of the thread which owns the this locker for
+ * tracing purposes.
+ */
+ virtual stdx::thread::id getThreadId() const = 0;
+
+ /**
* This should be the first method invoked for a particular Locker object. It acquires the
* Global lock in the specified mode and effectively indicates the mode of the operation.
* This is what the lock modes on the global lock mean: