Message from C, C++ discussions

December 2019

— C or C++?

— 

I have a question regarding synchronization. I want to make yet another productor-consumer program (wrapped in a class), but I think I keep getting a deadlock and can't really find where I'm wrong (there surely is some lack of understanding):

https://godbolt.org/z/9QzUj-

— Looks like C as not using std::string

— You never know...

— True

— You forgot thread_local😂

— Just add urs and make sure it compiles

— static thread_local inline constexpr volatile const unsigned long long int* const a{};
(C++17)

— User Hakim has 1/2 warnings; be careful!
The latest warn was because:
promotion

— That's 2/2 warnings; Hakim is banned!
Reasons:
1: promotion
2: Another promotion

— I am abandoning cxx now

— Why c++