69 initNew(locker,
this);
81 _supportsDocLocking = supported;
85 _supportsDocLocking = _oldSupportsDocLocking;
Interface for acquiring locks.
Definition: locker.h:47
Interface on which granted lock requests will be notified.
Definition: lock_manager_defs.h:276
~ForceSupportsDocLocking()
Definition: lock_manager_test_help.h:84
Definition: lock_manager_test_help.h:66
Definition: lock_manager_test_help.h:36
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
const bool _oldSupportsDocLocking
Definition: lock_manager_test_help.h:89
virtual bool unlockGlobal()
Definition: lock_state.cpp:416
This is used as an initializer value.
Definition: lock_manager_defs.h:133
Uniquely identifies a lockable resource.
Definition: lock_manager_defs.h:176
LockRequestCombo(Locker *locker)
Definition: lock_manager_test_help.h:68
LockResult lastResult
Definition: lock_manager_test_help.h:62
LockResult
Return values for the locking functions of the lock manager.
Definition: lock_manager_defs.h:99
Interface for acquiring locks.
Definition: lock_state.h:96
LockMode
Lock modes.
Definition: lock_manager_defs.h:59
virtual void notify(ResourceId resId, LockResult result)
This method is invoked at most once for each lock request and indicates the outcome of the lock acqui...
Definition: lock_manager_test_help.h:52
std::array< DefaultLockerImpl, kMaxPerfThreads > locker
Definition: d_concurrency_bm.cpp:66
TrackingLockGrantNotification()
Definition: lock_manager_test_help.h:50
ForceSupportsDocLocking(bool supported)
Definition: lock_manager_test_help.h:80
~LockerForTests()
Definition: lock_manager_test_help.h:42
virtual LockResult lockGlobal(OperationContext *opCtx, LockMode mode)
Definition: lock_state.cpp:305
There is one of those entries per each request for a lock.
Definition: lock_manager_defs.h:307
ResourceId lastResId
Definition: lock_manager_test_help.h:61
Definition: lock_manager_test_help.h:48
Definition: lock_manager_test_help.h:78
int numNotifies
Definition: lock_manager_test_help.h:59
LockerForTests(LockMode globalLockMode)
Definition: lock_manager_test_help.h:38
bool _supportsDocLocking
A RAII object that temporarily forces setting of the _supportsDocLocking global variable (defined in ...
Definition: lock_manager_test_help.h:77