We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for example, the following test case will fail:
TEST(ThreadPool, Case1) { ThreadPool pool(4); int x = 1;
auto res = pool.enqueue([](int& y){ y = 99; }, x); res.get(); EXPECT_EQ(x, 99);
}
The text was updated successfully, but these errors were encountered:
I think std::ref is needed here. https://en.cppreference.com/w/cpp/utility/functional/ref
Sorry, something went wrong.
Thanks for your answer, it is correct now
could you please close this issue, as it seems solved now?
No branches or pull requests
for example, the following test case will fail:
TEST(ThreadPool, Case1) {
ThreadPool pool(4);
int x = 1;
}
The text was updated successfully, but these errors were encountered: