BIND 10 trac2873, updated. aa8ab63a875ad8bc1c240199d48f72090c185f64 [2873] Use prefix ++ instead of postfix

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Aug 12 10:43:29 UTC 2013


The branch, trac2873 has been updated
       via  aa8ab63a875ad8bc1c240199d48f72090c185f64 (commit)
       via  5a161c44d4237c896b07e8e4bbffaa2df6fdbea9 (commit)
      from  3cfc5ffc86e1e4058789530c76f7d84e7e9e5ee4 (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 aa8ab63a875ad8bc1c240199d48f72090c185f64
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Mon Aug 12 12:37:30 2013 +0200

    [2873] Use prefix ++ instead of postfix

commit 5a161c44d4237c896b07e8e4bbffaa2df6fdbea9
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Mon Aug 12 12:34:59 2013 +0200

    [2873] Fix copy-pasted doc

-----------------------------------------------------------------------

Summary of changes:
 src/bin/resolver/bench/landlord.h        |    7 +++----
 src/bin/resolver/bench/main.cc           |    4 ++--
 src/bin/resolver/bench/naive_resolver.cc |    2 +-
 3 files changed, 6 insertions(+), 7 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/resolver/bench/landlord.h b/src/bin/resolver/bench/landlord.h
index d7c4da8..f053e92 100644
--- a/src/bin/resolver/bench/landlord.h
+++ b/src/bin/resolver/bench/landlord.h
@@ -23,11 +23,10 @@ namespace isc {
 namespace resolver {
 namespace bench {
 
-/// \brief Naive implementation of resolver for the benchmark
+/// \brief Landlord implementation of the resolver
 ///
-/// This is here mostly to show how to implement the other benchmark
-/// implementations. Look at the code inside how to use the fake
-/// resolution.
+/// A shared resource is maintained by separate process with input and
+/// output queues. Cache is RCU.
 class LandlordResolver {
 public:
     /// \brief Constructor. Initializes the data.
diff --git a/src/bin/resolver/bench/main.cc b/src/bin/resolver/bench/main.cc
index 0b77421..999f950 100644
--- a/src/bin/resolver/bench/main.cc
+++ b/src/bin/resolver/bench/main.cc
@@ -24,8 +24,8 @@ const size_t count = 10000; // TODO: We may want to read this from argv.
 using namespace std;
 
 int main(int, const char**) {
-    for (size_t i = 1; i < 10; i ++) {
-        for (size_t j = 1; j < 10; j ++) {
+    for (size_t i = 1; i < 10; ++ i) {
+        for (size_t j = 1; j < 10; ++ j) {
             size_t size = j * 25;
             cout << "Landlord with " << i << " workers and " << size << " batch size " << endl;
             isc::resolver::bench::LandlordResolver landlord(::count, size, i);
diff --git a/src/bin/resolver/bench/naive_resolver.cc b/src/bin/resolver/bench/naive_resolver.cc
index 1654496..8136cb9 100644
--- a/src/bin/resolver/bench/naive_resolver.cc
+++ b/src/bin/resolver/bench/naive_resolver.cc
@@ -55,7 +55,7 @@ NaiveResolver::run() {
                 interface_.processEvents();
             }
         }
-        count ++;
+        ++ count;
     }
     processed_ = true;
     return (count);



More information about the bind10-changes mailing list