Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The `thread_local` specifier is used on a few microcontroller platforms already, but would be absolutely illegal in C11 and before to use. However, it vastly simplifies memory management in a threaded context.

Why would I rather step into the world of C++ just to deal with that?



IIRC, performance and cost of thread local store varies greatly between platforms.

You have to know what you're biting into, before you use that.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: