In a C++ Linux app, what is the simplest way to get the functionality that the Interlocked functions on Win32 provide? Specifically, a lightweight way to atomically increme
The atomic functions from the Apache Portable Runtime are really close to the Win32 InterlockedXXX functions.