cppatomic
Results for
C++ idioms
Home
Subscribe to:
Posts ( Atom )
About me
Hi! This is Avinash. I currently live in Sydney, Australia. I have worked in capital markets and gaming domains for 7+ years now. I primarily code in C++ and Python. In my free-time, I love to play PS4 or explore the city.
Popular Posts
Modern Effective C++ - When to use volatile and when to use atomic.
Unlike volatile in other languages like Java or C#, volatile is not meant to be used in multi-threaded programming in C++. Hence using vola...
Modern Effective C++ - Alternative to condition variables for thread communication
As discussed in the previous article , usage of mutexes and condition variables is problematic especially when we simply want to signal(jus...
Modern Effective C++ - Make std::thread unjoinable on all exit paths.
std::thread can be in two states of joinability, joinable or unjoinable. std::thread usually serves as a handle on an underlying asynchrono...
Modern Effective C++ - Using condition variables to communicate between threads
Usually the most popular choice when we need to communicate between threads is condition variable. Usually there is a sender who signals th...
Modern Effective C++ - Use launch policy std::launch::async to force asynchronicity.
As already discussed in the previous article, when std::async is started without launch policy, a default launch policy is used, which at r...
Powered by
Blogger
.