summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/threadedtests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/threadedtests.cpp')
-rw-r--r--src/mongo/dbtests/threadedtests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/threadedtests.cpp b/src/mongo/dbtests/threadedtests.cpp
index 9486227a1cc..8d046cc504a 100644
--- a/src/mongo/dbtests/threadedtests.cpp
+++ b/src/mongo/dbtests/threadedtests.cpp
@@ -79,7 +79,7 @@ private:
if (!remaining)
return;
- stdx::thread athread([=] { subthread(remaining); });
+ stdx::thread athread([=, this] { subthread(remaining); });
launch_subthreads(remaining - 1);
athread.join();
}
@@ -134,7 +134,7 @@ public:
tp.startup();
for (unsigned i = 0; i < iterations; i++) {
- tp.schedule([=](auto status) {
+ tp.schedule([=, this](auto status) {
ASSERT_OK(status);
increment(2);
});