Looks good Dustin, just validated using the latest test from Tomash.
Also we need to wrap this in pthread mutex's so its compatible with
thread version.
Chris Goffinet
[EMAIL PROTECTED]
On Nov 11, 2007, at 2:37 PM, Dustin Sallings wrote:
On Nov 11, 2007, at 9:39, Tomash Brechko wrote:
However internally (and this was mentioned in the thread) CAS value
is
actually a pointer (cast to uint32_t for some reason). So I thought,
how we know the pointer won't be reused?
Can you take a look at this and see if it makes any more sense?
<cas-global-counter.diff>
--
Dustin Sallings