Skip to content

Commit

Permalink
Drop call to request_stop on slide of jthread
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Ponce authored and Sebastien Ponce committed Oct 2, 2024
1 parent 7f0e172 commit 25b5195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talk/concurrency/threadsasync.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 25b5195

Please sign in to comment.