std::jthread joins automatically
std::jthread Solution: std::jthread joins automatically at the end of its scope. std::jthread t{[]{ std::cout << "New thread"; }}; std::cout << "t.joinable(): " << t.joinable(); rainer : bash — Konsole File Edit View Bookmarks Settings Help rainer@seminar:~> jthread t.joinable(): true New thread rainer@seminar:~>
A presentation slide explains that C++17/20's std::jthread automatically joins at the end of its scope, alongside a terminal demonstration showing a joinable thread and the message “New thread.” The joke is a nerdy programming reaction to modern C++ features working conveniently while developers often still have to build their own solutions. EN: A presentation slide explains that C++17/20's std::jthread automatically joins at the end of its scope, alongside a terminal demonstration showing a joinable thread and the message “New thread.” The joke is a nerdy programming reaction to modern C++ features working conveniently while developers often still have to build their own solutions.
presentation slide / слайд презентацииcomputer code / программный кодterminal window / окно терминалаlaptop or monitor screen / экран ноутбука или монитораC++ source code / исходный код C++command prompt / командная строкаtext editor or presentation software / редактор текста или программа презентацииwindow controls / элементы управления окномwhite background / белый фон
- @ithueti / 856 2019-04-20
- Type
- image
- Size
- 800×600 · 44.1 KiB
- Mood
- nerdy, ironic
- Language
- en
- Added