bricks: fix the test-suite
Fixes #446 using a fix from Étienne Renault. * tests/core/bricks.cc: Pass the hash table by reference while instantiating the threads.
This commit is contained in:
parent
64be4dc814
commit
535d4555e5
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ int main()
|
||||||
std::vector<std::thread> workers;
|
std::vector<std::thread> workers;
|
||||||
for (int i = 0; i < 6; i++)
|
for (int i = 0; i < 6; i++)
|
||||||
workers.
|
workers.
|
||||||
push_back(std::thread([&ht2](int tid)
|
push_back(std::thread([ht2](int tid) mutable
|
||||||
{
|
{
|
||||||
for (int i = 0; i< 2000; ++i)
|
for (int i = 0; i< 2000; ++i)
|
||||||
ht2.insert({i, tid});
|
ht2.insert({i, tid});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue