r/cpp • u/User_Deprecated • Jul 11 '26
Propagating exceptions from destructors with std::exception_ptr
https://www.sandordargo.com/blog/2026/07/08/exception_ptr
80
Upvotes
r/cpp • u/User_Deprecated • Jul 11 '26
View all comments
Show parent comment
-1
u/azswcowboy Jul 11 '26
If your await or suspend is resumed from another thread the TLS will be different than the scope you started in. And if the thread has exited the TLS pointed to will be gone.