BIND 10 trac2875, updated. ad25e8e1d467ce0398d8b868da979be581c83f43 [2875] Add forgotten files

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Jul 18 09:29:31 UTC 2013


The branch, trac2875 has been updated
       via  ad25e8e1d467ce0398d8b868da979be581c83f43 (commit)
      from  9432b2b1b4bbe2053a0bcdef6b95505b3a7dafb7 (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 ad25e8e1d467ce0398d8b868da979be581c83f43
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Thu Jul 18 11:28:43 2013 +0200

    [2875] Add forgotten files

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

Summary of changes:
 .../resolver/bench/{dummy_work.cc => layers.cc}    |   20 ++++++++++++----
 .../resolver/bench/{naive_resolver.h => layers.h}  |   25 ++++++++++----------
 2 files changed, 27 insertions(+), 18 deletions(-)
 copy src/bin/resolver/bench/{dummy_work.cc => layers.cc} (71%)
 copy src/bin/resolver/bench/{naive_resolver.h => layers.h} (66%)

-----------------------------------------------------------------------
diff --git a/src/bin/resolver/bench/layers.cc b/src/bin/resolver/bench/layers.cc
new file mode 100644
index 0000000..5088d4b
--- /dev/null
+++ b/src/bin/resolver/bench/layers.cc
@@ -0,0 +1,38 @@
+// Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+// PERFORMANCE OF THIS SOFTWARE.
+
+#include <resolver/bench/layers.h>
+#include <resolver/bench/subprocess.h>
+
+namespace isc {
+namespace resolver {
+namespace bench {
+
+LayerResolver::~LayerResolver() {
+    delete top;
+}
+
+size_t
+LayerResolver::run() {
+    // Send "Run" signal
+    top->send("R", 1);
+    // Wait for "Finished" signal
+    const std::string& response = top->read(1);
+    assert(response == "F");
+    return (total_count_);
+}
+
+}
+}
+}
diff --git a/src/bin/resolver/bench/layers.h b/src/bin/resolver/bench/layers.h
new file mode 100644
index 0000000..361900d
--- /dev/null
+++ b/src/bin/resolver/bench/layers.h
@@ -0,0 +1,43 @@
+// Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+// PERFORMANCE OF THIS SOFTWARE.
+
+#ifndef RESOLVER_BENCH_LAYERS_H
+#define RESOLVER_BENCH_LAYERS_H
+
+#include <resolver/bench/fake_resolution.h>
+
+#include <boost/noncopyable.hpp>
+
+namespace isc {
+namespace resolver {
+namespace bench {
+
+class Subprocess;
+
+class LayerResolver : boost::noncopyable {
+public:
+    LayerResolver(size_t count, size_t worker_count, size_t fanout);
+    ~LayerResolver();
+    size_t run();
+private:
+    void spawn(size_t count, size_t worker_count, size_t fanout, int channel);
+    Subprocess* top;
+    size_t total_count_;
+};
+
+}
+}
+}
+
+#endif



More information about the bind10-changes mailing list