3 ms·
I’m not sure C++ has ever used the `_Yield` hack, except for C compatibility? C on the other hand uses it all the time.
by Sharlin 4y ago
I’m not sure C++ has ever used the `_Yield` hack, except for C compatibility? C on the other hand uses it all the time.
- layer8 4y agoIt could be that I'm remembering it from C.
- chippiewill 4y agoIt's super common in C because C doesn't have namespaces and templates which means stuff C++ implements as namespaced library classes C has to implement as language keywords. A good example is atomics. C++11 introduced `std::atomic`, C11 introduced the keyword `_Atomic`