C++11 concurrency: locks

In a previous post I introduced the C++11 support for threads. In this article I will discuss the locking features provided by the standard that one can use to synchronize access to shared resources. The core syncing primitive is the mutex, which comes in four flavors, in the <mutex> header: mutex: provides the core lock() … Read more