From 34be19c2ef1e28b1ddb43cabc87ebdcde72f4cd1 Mon Sep 17 00:00:00 2001 From: Sebastien Ponce Date: Wed, 2 Oct 2024 11:42:17 +0200 Subject: [PATCH] Drop call to request_stop on slide of jthread --- talk/concurrency/threadsasync.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talk/concurrency/threadsasync.tex b/talk/concurrency/threadsasync.tex index 8b0a3990..b33d6654 100644 --- a/talk/concurrency/threadsasync.tex +++ b/talk/concurrency/threadsasync.tex @@ -64,7 +64,7 @@ void bar() {...} int main() { std::jthread t1{foo}; - std::jthread t2{bar}; t2.request_stop(); + std::jthread t2{bar}; // No join required return 0; }