summaryrefslogtreecommitdiff
path: root/src/mongo/util/queue.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-06-14 16:04:02 -0400
committerEric Milkie <milkie@10gen.com>2012-06-14 16:04:16 -0400
commit9ab72cc8172638d6e3245131ddc271b5fa488b8e (patch)
tree7b447b71f4cb6a159c40e0359ebb13818a5a62fb /src/mongo/util/queue.h
parent767c0103205728993d735bcbf9e77332ecf05ef1 (diff)
downloadmongo-9ab72cc8172638d6e3245131ddc271b5fa488b8e.tar.gz
initialize member variable
Diffstat (limited to 'src/mongo/util/queue.h')
-rw-r--r--src/mongo/util/queue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/util/queue.h b/src/mongo/util/queue.h
index 936b4ae15bd..c5a363cae87 100644
--- a/src/mongo/util/queue.h
+++ b/src/mongo/util/queue.h
@@ -43,14 +43,17 @@ namespace mongo {
BlockingQueue() :
_lock("BlockingQueue"),
_maxSize(std::numeric_limits<std::size_t>::max()),
+ _currentSize(0),
_getSize(&_getSizeDefault) {}
BlockingQueue(size_t size) :
_lock("BlockingQueue(bounded)"),
_maxSize(size),
+ _currentSize(0),
_getSize(&_getSizeDefault) {}
BlockingQueue(size_t size, getSizeFunc f) :
_lock("BlockingQueue(custom size)"),
_maxSize(size),
+ _currentSize(0),
_getSize(f) {}
void push(T const& t) {