summaryrefslogtreecommitdiff
path: root/db/concurrency.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-25 00:47:31 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-25 00:47:31 -0400
commit8495bf5a337f749799769feab13c665efb56014f (patch)
tree14e3ff3c9480d16f7c6e1044b00baacac830c864 /db/concurrency.h
parent69267a903265b7f70dd7777c569b74488ea4b9bc (diff)
downloadmongo-8495bf5a337f749799769feab13c665efb56014f.tar.gz
dos2unix MINOR
Diffstat (limited to 'db/concurrency.h')
-rw-r--r--db/concurrency.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/db/concurrency.h b/db/concurrency.h
index 49a3b8676d8..83e02a09b5b 100644
--- a/db/concurrency.h
+++ b/db/concurrency.h
@@ -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() );
+ }
+
+}