
Can you please take a look at the following x86-64 c++ code which should implement a multi consumer/produce lockfree stack? Do you think have I missed anything?
namespace lockfree {
// NOTE: this lock-free stack uses the highest 2 bytes
// of each pointer to store a 'counter' (an "id...