projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactor stats to use the same type for indexes
[folly.git]
/
folly
/
test
/
ThreadLocalBenchmark.cpp
diff --git
a/folly/test/ThreadLocalBenchmark.cpp
b/folly/test/ThreadLocalBenchmark.cpp
index 88691e13eb6fc739dedcc1ba7486df5adaba636c..824b73ea108c39144a79f8e4dbcfe132c7cd806b 100644
(file)
--- a/
folly/test/ThreadLocalBenchmark.cpp
+++ b/
folly/test/ThreadLocalBenchmark.cpp
@@
-66,7
+66,7
@@
DEFINE_int32(numThreads, 8, "Number simultaneous threads for benchmarks.");
for (int i = 0; i < FLAGS_numThreads; ++i) { \
threads.push_back(std::thread([&]() { \
var.reset(new int(0)); \
- for (int
i = 0; i < itersPerThread; ++i
) { \
+ for (int
j = 0; j < itersPerThread; ++j
) { \
++(*var.get()); \
} \
})); \