summaryrefslogtreecommitdiff
path: root/src/mongo/util/queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/queue.h')
-rw-r--r--src/mongo/util/queue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/util/queue.h b/src/mongo/util/queue.h
index 320f036e9ff..176e719cfdf 100644
--- a/src/mongo/util/queue.h
+++ b/src/mongo/util/queue.h
@@ -37,6 +37,7 @@
#include "mongo/platform/mutex.h"
#include "mongo/stdx/chrono.h"
#include "mongo/stdx/condition_variable.h"
+#include "mongo/util/hierarchical_acquisition.h"
namespace mongo {
@@ -251,7 +252,7 @@ private:
}
}
- mutable Mutex _lock = MONGO_MAKE_LATCH("BlockingQueue::_lock");
+ mutable Mutex _lock = MONGO_MAKE_LATCH(HierarchicalAcquisitionLevel(0), "BlockingQueue::_lock");
std::queue<T> _queue;
const size_t _maxSize;
size_t _currentSize = 0;