summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/d_concurrency.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/concurrency/d_concurrency.h')
-rw-r--r--src/mongo/db/concurrency/d_concurrency.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/concurrency/d_concurrency.h b/src/mongo/db/concurrency/d_concurrency.h
index 5eb5de3a5e2..d5dc7599b3b 100644
--- a/src/mongo/db/concurrency/d_concurrency.h
+++ b/src/mongo/db/concurrency/d_concurrency.h
@@ -179,7 +179,10 @@ public:
* Enqueues lock but does not block on lock acquisition.
* Call waitForLock() to complete locking process.
*/
- GlobalLock(OperationContext* opCtx, LockMode lockMode, EnqueueOnly enqueueOnly);
+ GlobalLock(OperationContext* opCtx,
+ LockMode lockMode,
+ unsigned timeoutMs,
+ EnqueueOnly enqueueOnly);
~GlobalLock() {
_unlock();
@@ -198,7 +201,7 @@ public:
}
private:
- void _enqueue(LockMode lockMode);
+ void _enqueue(LockMode lockMode, unsigned timeoutMs);
void _unlock();
OperationContext* const _opCtx;