BIND 10 trac2873, updated. 3cfc5ffc86e1e4058789530c76f7d84e7e9e5ee4 [2873] Rename method argument and documentation accordingly
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Aug 12 08:51:31 UTC 2013
The branch, trac2873 has been updated
via 3cfc5ffc86e1e4058789530c76f7d84e7e9e5ee4 (commit)
via 7eed4dba9156a102b58f39e90038b3c2f5dd1897 (commit)
from 4a6b06c9e3faf38030823f2b213d0731f5526749 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3cfc5ffc86e1e4058789530c76f7d84e7e9e5ee4
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Aug 7 15:18:21 2013 +0530
[2873] Rename method argument and documentation accordingly
commit 7eed4dba9156a102b58f39e90038b3c2f5dd1897
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Aug 7 15:17:51 2013 +0530
[2873] Fix typo
-----------------------------------------------------------------------
Summary of changes:
src/bin/resolver/bench/landlord.cc | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/resolver/bench/landlord.cc b/src/bin/resolver/bench/landlord.cc
index 7659c0d..6b8417e 100644
--- a/src/bin/resolver/bench/landlord.cc
+++ b/src/bin/resolver/bench/landlord.cc
@@ -59,22 +59,23 @@ public:
// Wake all threads waiting on new data
condvar_.broadcast();
}
- // Signal that we are expected to shutdown. This is out of baund.
+ // Signal that we are expected to shutdown. This is out of band.
void shutdown() {
Mutex::Locker locker(mutex_);
shutdown_ = true;
condvar_.broadcast();
}
- // Get some values from the queue. The values are put into where.
- // It gets maximum of max values, but there may be less. If there
- // are no values and wait is true, it blocks until some values appear.
- bool pop(Values &where, size_t max, bool wait = true) {
+ // Get some values from the queue. The values are returned in the
+ // ret argument. It returns a maximum of max values, but there may
+ // be less. If there are no values and wait is true, it blocks until
+ // some values appear.
+ bool pop(Values &ret, size_t max, bool wait = true) {
Mutex::Locker locker(mutex_);
while (values_.empty() && wait && !shutdown_) {
condvar_.wait(mutex_);
}
size_t amount = std::min(max, values_.size());
- where.insert(where.end(), values_.begin(), values_.begin() + amount);
+ ret.insert(ret.end(), values_.begin(), values_.begin() + amount);
values_.erase(values_.begin(), values_.begin() + amount);
return !shutdown_;
}
More information about the bind10-changes
mailing list