BIND 10 trac2202, updated. 0ca39bfe35f856eb54ff77c50f5b2230ed20313b [2202] The vector must be a reference

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Oct 1 14:21:18 UTC 2012


The branch, trac2202 has been updated
       via  0ca39bfe35f856eb54ff77c50f5b2230ed20313b (commit)
      from  52d245f139122e86c07a4336fbb2495bdb6499d9 (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 0ca39bfe35f856eb54ff77c50f5b2230ed20313b
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Mon Oct 1 16:20:33 2012 +0200

    [2202] The vector must be a reference
    
    Otherwise, each thread would get its own copy of it, messing with it
    privately, not causing any need for locking.

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

Summary of changes:
 src/lib/util/threads/tests/lock_unittest.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/util/threads/tests/lock_unittest.cc b/src/lib/util/threads/tests/lock_unittest.cc
index cc959f5..d6579d8 100644
--- a/src/lib/util/threads/tests/lock_unittest.cc
+++ b/src/lib/util/threads/tests/lock_unittest.cc
@@ -79,7 +79,7 @@ const unsigned long long length = 1000;
 const unsigned long long iterations = 10000;
 const unsigned long long value = 2000;
 void
-performStrangeOperation(std::vector<long long unsigned> array, int direction,
+performStrangeOperation(std::vector<long long unsigned>& array, int direction,
                         Mutex* mutex)
 {
     unsigned long long position = 0;



More information about the bind10-changes mailing list