![]() |
Storage Engine API
|
Obtains a ResourceMutex for shared/non-exclusive use. More...
#include <d_concurrency.h>
Obtains a ResourceMutex for shared/non-exclusive use.
This uses MODE_IS rather than MODE_S to take advantage of optimizations in the lock manager for intent modes. This is OK as this just has to conflict with exclusive locks.
Public Member Functions | |
| SharedLock (Locker *locker, ResourceMutex mutex) | |
Public Member Functions inherited from mongo::Lock::ResourceLock | |
| ResourceLock (Locker *locker, ResourceId rid) | |
| ResourceLock (Locker *locker, ResourceId rid, LockMode mode) | |
| ResourceLock (ResourceLock &&otherLock) | |
| ~ResourceLock () | |
| void | lock (LockMode mode) |
| void | unlock () |
| bool | isLocked () const |
|
inline |