summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_yield.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/query_yield.h')
-rw-r--r--src/mongo/db/query/query_yield.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/mongo/db/query/query_yield.h b/src/mongo/db/query/query_yield.h
index 14f018368af..a6db563d195 100644
--- a/src/mongo/db/query/query_yield.h
+++ b/src/mongo/db/query/query_yield.h
@@ -30,24 +30,23 @@
namespace mongo {
- class OperationContext;
- class RecordFetcher;
+class OperationContext;
+class RecordFetcher;
+/**
+ * See the documentation for yieldAllLocks(...).
+ */
+class QueryYield {
+ QueryYield();
+
+public:
/**
- * See the documentation for yieldAllLocks(...).
+ * If not in a nested context, unlocks all locks, suggests to the operating system to
+ * switch to another thread, and then reacquires all locks.
+ *
+ * If in a nested context (eg DBDirectClient), does nothing.
*/
- class QueryYield {
- QueryYield();
-
- public:
-
- /**
- * If not in a nested context, unlocks all locks, suggests to the operating system to
- * switch to another thread, and then reacquires all locks.
- *
- * If in a nested context (eg DBDirectClient), does nothing.
- */
- static void yieldAllLocks(OperationContext* txn, RecordFetcher* fetcher);
- };
+ static void yieldAllLocks(OperationContext* txn, RecordFetcher* fetcher);
+};
-} // namespace mongo
+} // namespace mongo