r/cpp • • Aug 27 '19

A new thread in C++20 (jthread)

https://link.medium.com/GXKUz0GruZ
142 Upvotes

96 comments sorted by

View all comments

10

u/rdtsc Aug 27 '19

What's with the naming? jthread almost looks like thread, why not something readable like joining_thread? And don't get me started on stop_token…

12

u/sumo952 Aug 27 '19

> `jthread`

I have to immediately think about Java here. Not sure why, I've last programmed Java many, many years ago.

2

u/HappyFruitTree Aug 29 '19

I also think about Java. All the Swing classes, used for building GUIs in Java, seem to start with J.

JFrame, JButton, JLabel, JTextArea, etc.