diff options
author | Eric Milkie <milkie@10gen.com> | 2012-06-14 16:04:02 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-06-14 16:04:16 -0400 |
commit | 9ab72cc8172638d6e3245131ddc271b5fa488b8e (patch) | |
tree | 7b447b71f4cb6a159c40e0359ebb13818a5a62fb /src/mongo/util/queue.h | |
parent | 767c0103205728993d735bcbf9e77332ecf05ef1 (diff) | |
download | mongo-9ab72cc8172638d6e3245131ddc271b5fa488b8e.tar.gz |
initialize member variable
Diffstat (limited to 'src/mongo/util/queue.h')
-rw-r--r-- | src/mongo/util/queue.h | 3 |
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) { |