Код: Выделить всё
#include
#include
#include
int main(void)
{
std::thread t2(
[&] {
thread_local std::jthread asd([] {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/77126448/thread-local-stdthread-deadlock-on-destruction[/url]
Мобильная версия