ms-queue: cleanups, convert to C11 atomics
authorBrian Norris <banorris@uci.edu>
Wed, 6 Mar 2013 00:29:51 +0000 (16:29 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 6 Mar 2013 00:29:51 +0000 (16:29 -0800)
commit509ce2ac5c3372c0527e4b66d1088bcdd7b94cdf
treeab05879c903146f1f1d137afaf574cfa9b8f535e
parent7df8191c93d3664a3b1ea2dfcd0e88de2cfcc7c9
ms-queue: cleanups, convert to C11 atomics

This converts the "pointer" to a 64-bit type (unsigned long long, or
'pointer') divided into two 32-bit halves (ptr and count), instead of
using a union of a struct and an 'unsigned long'.

All atomics are seq_cst for now. Once the code all looks a little
better, I'll relax these to reasonable memory orderings.
ms-queue/args.c
ms-queue/main.c
ms-queue/my_queue.c
ms-queue/my_queue.h