For use as general mutex or readers/writers lock, outside the general multi-granularity model.
More...
#include <d_concurrency.h>
For use as general mutex or readers/writers lock, outside the general multi-granularity model.
A ResourceMutex is not affected by yielding/temprelease and two phase locking semantics inside WUOWs. Lock with ResourceLock, SharedLock or ExclusiveLock. Uses same fairness as other LockManager locks.
◆ ResourceMutex()
mongo::Lock::ResourceMutex::ResourceMutex |
( |
std::string |
resourceLabel | ) |
|
◆ getName() [1/2]
std::string mongo::Lock::ResourceMutex::getName |
( |
| ) |
const |
|
inline |
◆ getName() [2/2]
std::string mongo::Lock::ResourceMutex::getName |
( |
ResourceId |
resourceId | ) |
|
|
static |
◆ isAtLeastReadLocked()
bool mongo::Lock::ResourceMutex::isAtLeastReadLocked |
( |
Locker * |
locker | ) |
|
◆ isExclusivelyLocked()
bool mongo::Lock::ResourceMutex::isExclusivelyLocked |
( |
Locker * |
locker | ) |
|
◆ rid()
ResourceId mongo::Lock::ResourceMutex::rid |
( |
| ) |
const |
|
inlineprivate |
Each instantiation of this class allocates a new ResourceId.
◆ Lock::ExclusiveLock
◆ Lock::SharedLock
◆ _rid
The documentation for this class was generated from the following files:
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/concurrency/d_concurrency.h
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/concurrency/d_concurrency.cpp