Is there a (POSIX-)portable way in C for atomic variable operations similar to a portable threading with pthread?
Atomic operations are operations like \"increment a
For anyone who stumbles upon this in the future, C11 atomics are the best way to do this now - I believe they will be included in GCC 4.9.