I\'m looking for a way to atomically increment a short, and then return that value. I need to do this both in kernel mode and in user mode, so it\'s in C, under Linux, on In
GCC supports atomic operations:
gcc atomics