Interface for acquiring locks.
Definition: locker.h:47
Interface on which granted lock requests will be notified.
Definition: lock_manager_defs.h:289
~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:424
void initNew(Locker *locker, LockGrantNotification *notify)
Used for initialization of a LockRequest, which might have been retrieved from cache.
Definition: lock_manager.cpp:1163
This is used as an initializer value.
Definition: lock_manager_defs.h:142
Uniquely identifies a lockable resource.
Definition: lock_manager_defs.h:189
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:108
Interface for acquiring locks.
Definition: lock_state.h:96
LockMode
LockMode compatibility matrix.
Definition: lock_manager_defs.h:61
Locker * locker
Definition: lock_manager_defs.h:342
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
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:320
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