diff options
author | Geert Bosch <geert@mongodb.com> | 2017-04-21 18:09:06 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2017-05-01 14:57:51 -0400 |
commit | 498df9ab853bb03514b8803b9b1f6c2b6900b533 (patch) | |
tree | ac6e5974014177968a12b66745f7b97ac3622893 /src/mongo/db/concurrency/d_concurrency.h | |
parent | db53b03f5c1420b9bcade637873522f1847f9e3f (diff) | |
download | mongo-498df9ab853bb03514b8803b9b1f6c2b6900b533.tar.gz |
SERVER-28427 Implement timeouts for the TicketHolder
Diffstat (limited to 'src/mongo/db/concurrency/d_concurrency.h')
-rw-r--r-- | src/mongo/db/concurrency/d_concurrency.h | 7 |
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; |