mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
dos2unix MINOR
This commit is contained in:
parent
69267a9032
commit
8495bf5a33
@ -1,21 +1,21 @@
|
||||
/* concurrency.h
|
||||
|
||||
mongod concurrency rules & notes will be placed here.
|
||||
|
||||
Mutex heirarchy (1 = "leaf")
|
||||
name level
|
||||
Logstream::mutex 1
|
||||
ClientCursor::ccmutex 2
|
||||
dblock 3
|
||||
|
||||
End func name with _inlock to indicate "caller must lock before calling".
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace mongo {
|
||||
|
||||
/* mutex time stats */
|
||||
/* concurrency.h
|
||||
|
||||
mongod concurrency rules & notes will be placed here.
|
||||
|
||||
Mutex heirarchy (1 = "leaf")
|
||||
name level
|
||||
Logstream::mutex 1
|
||||
ClientCursor::ccmutex 2
|
||||
dblock 3
|
||||
|
||||
End func name with _inlock to indicate "caller must lock before calling".
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace mongo {
|
||||
|
||||
/* mutex time stats */
|
||||
class MutexInfo {
|
||||
unsigned long long start, enter, timeLocked; // all in microseconds
|
||||
int locked;
|
||||
@ -92,8 +92,8 @@ namespace mongo {
|
||||
}
|
||||
};
|
||||
|
||||
inline void assertInWriteLock() {
|
||||
assert( dbMutexInfo.isLocked() );
|
||||
}
|
||||
|
||||
}
|
||||
inline void assertInWriteLock() {
|
||||
assert( dbMutexInfo.isLocked() );
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user